Comments (11)
Hmm. The go function should wait for all mappers to finish before firing off the reducer. But, the reducer still checks for running mappers. In this case, it seems the go didn't find a mapper, but the reduce function did. My guess is that one unluckily fired off in the short time between the two.
Regardless, we should give the command to rerun later in the confirmation message. Will send a PR tomorrow.
from drat.
We could also only wait for 10 or so seconds for user input if the reduce function finds running mappers, then simply trying to run reduce again. That way, asleep go users don't get an unpleasant surprise in the morning and reduce users can just say no then try again later.
from drat.
I'm wondering why it stalls - I thought the point of go was to be automated - I think it dynamically checks for the mappers to be done and then fires the reducer, right? Where does the prompt come in? I thought it comes in if you don't use "go" and if you ran each cycle (crawl, index, map) before running reduce?
from drat.
Correct, go waits for mappers to finish, then calls the reduce function. The reduce function checks for running mappers, then prompts the user for confirmation if there are still mappers running.
This double-check is useful for when a user doesn't want to use go
, and instead call reduce manually. For automation, go
attempts to prevent this check from finding any mappers.
In this issue, go
found no mappers, but reduce
did. I don't know why, except for maybe being really unlucky. This should never happen, since they both use the same method to check for currently running mappers.
Unless, does this happen every time, Lewis?
from drat.
every time Tyler. It seems tobe built in.
On Thu, Jul 24, 2014 at 8:57 PM, Tyler Palsulich [email protected]
wrote:
Correct, go waits for mappers to finish, then calls the reduce function.
The reduce function checks for running mappers, then prompts the user for
confirmation if there are still mappers running.This double-check is useful for when a user doesn't want to use go, and
instead call reduce manually. For automation, go attempts to prevent this
check from finding any mappers.In this issue, go found no mappers, but reduce did. I don't know why,
except for maybe being really unlucky. This should never happen, since they
both use the same method to check for currently running mappers.Unless, does this happen every time, Lewis?
—
Reply to this email directly or view it on GitHub
chrismattmann/drat#17 (comment).
Lewis
from drat.
BTW another observation of running on Usergrid codebase was that some tasks too around 18-20 mins whereas others took literally a second or two. Please see screenshot of OPSUI. I am investigating further folks.
from drat.
Lewis that's totally expected (some tasks taking 20 mins, versus seconds). It has to do with the type of code it's looking at - usually Javascript or other MIME types, etc., take WAY longer than e.g., Java, for instance to check. I think this is more a functionality of RAT than anything else, but it could be that there is some difficulty RAT has in finding licenses in particular programming languages. But note, this is a KNOWN issue, (that Tika and DRAT helped to uncover, check out the DRAT docs for more info via the XNET presentation).
from drat.
Great.
This is something new I am learing and I am extremely happy that you've now
put DRAT into ASLv2.0...
I am now a contributor :)
On Thu, Jul 24, 2014 at 10:42 PM, Chris Mattmann [email protected]
wrote:
Lewis that's totally expected (some tasks taking 20 mins, versus seconds).
It has to do with the type of code it's looking at - usually Javascript or
other MIME types, etc., take WAY longer than e.g., Java, for instance to
check. I think this is more a functionality of RAT than anything else, but
it could be that there is some difficulty RAT has in finding licenses in
particular programming languages. But note, this is a KNOWN issue, (that
Tika and DRAT helped to uncover, check out the DRAT docs for more info via
the XNET presentation).—
Reply to this email directly or view it on GitHub
chrismattmann/drat#17 (comment).
Lewis
from drat.
you are awesome!
Chris Mattmann
[email protected]
-----Original Message-----
From: Lewis John McGibbney [email protected]
Reply-To: chrismattmann/drat
<reply+i-38691321-173039f6446ef9f81838cea84193de75f255e45a-395887@reply.git
hub.com>
Date: Friday, July 25, 2014 12:08 AM
To: chrismattmann/drat [email protected]
Cc: Chris Mattmann [email protected]
Subject: Re: [drat] drat 'go' command stalls at reduce prompt (#17)
Great.
This is something new I am learing and I am extremely happy that you've
nowput DRAT into ASLv2.0...
I am now a contributor :)
On Thu, Jul 24, 2014 at 10:42 PM, Chris Mattmann
[email protected]wrote:
Lewis that's totally expected (some tasks taking 20 mins, versus
seconds).It has to do with the type of code it's looking at - usually Javascript
orother MIME types, etc., take WAY longer than e.g., Java, for instance to
check. I think this is more a functionality of RAT than anything else,
butit could be that there is some difficulty RAT has in finding licenses in
particular programming languages. But note, this is a KNOWN issue, (that
Tika and DRAT helped to uncover, check out the DRAT docs for more info
viathe XNET presentation).
�
Reply to this email directly or view it on GitHub
Lewis
�
Reply to this email directly or view it on GitHub
chrismattmann/drat#17 (comment).
from drat.
WOW I totally missed all of this conversation and also @tpalsulich patch.
The ...................... counting update for map is not only familar but also very professional.
Thanks for this functionality folks. MUCH more precise.
from drat.
BOOM XNET PRESSIE
https://www.youtube.com/watch?v=9w3fpnNWdIE
from drat.
Related Issues (20)
- Proteus doesn't index HOT 2
- Finish hooking up DRAT to Travis HOT 1
- Cypress Tests For Proteus
- Tool-tips for the visualizations to help newbies
- Drat Viz page refreshes too often
- Consider project groupings
- Consider a search bar for projects in project view viz HOT 3
- Consider reduction in project viz refresh on main page
- Consider highlighting the "Unknown" licenses in the audit view
- Consider using a log scale for the bar charts
- Hashmap exception when reducing
- PGE tries to run wrong RAT version HOT 1
- remove shopt from scripts HOT 1
- Create an issue and pull request templates HOT 3
- gitlab build chain for build and docker image
- Upgrade to Apache OODT 1.9 release HOT 1
- Change Maven Module prefix names from dms-* to drat-*
- DRAT updates to make it work with OODT 1.9 HOT 1
- Fix security issue in set-value
- Update logging to slf4j/log4j to match with OODT 1.9 onwards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drat.