Code Monkey home page Code Monkey logo

Comments (11)

tbpalsulich avatar tbpalsulich commented on August 12, 2024

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.

tbpalsulich avatar tbpalsulich commented on August 12, 2024

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.

chrismattmann avatar chrismattmann commented on August 12, 2024

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.

tbpalsulich avatar tbpalsulich commented on August 12, 2024

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.

lewismc avatar lewismc commented on August 12, 2024

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.

lewismc avatar lewismc commented on August 12, 2024

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.
screen shot 2014-07-24 at 10 07 07 pm

from drat.

chrismattmann avatar chrismattmann commented on August 12, 2024

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.

lewismc avatar lewismc commented on August 12, 2024

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.

chrismattmann avatar chrismattmann commented on August 12, 2024

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
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


Reply to this email directly or view it on GitHub
chrismattmann/drat#17 (comment).

from drat.

lewismc avatar lewismc commented on August 12, 2024

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.

lewismc avatar lewismc commented on August 12, 2024

BOOM XNET PRESSIE
https://www.youtube.com/watch?v=9w3fpnNWdIE

from drat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.