Alan Gates commented on PIG-1053:

For testing purposes we could simply change Main to tell PigContext the mode is 
MapReduce, even when the user selects local mode.  Assuming there are no 
configuration files in the classpath, this will result in using Hadoop in the 
local mode.

However, for a real fix, we need to make sure that when the user says "-x 
local" Hadoop's LocalJobRunner and the local file system are chosen even if 
there are configuration files in the classpath.  I believe this would be 
accomplished by changing PigContext to in local mode still connect to MR and 
HDFS, but to do so with an empty Properties object rather than using the one 
that is passed in.  This would affect connect, init, setJobTrackerLocation, and 
perhaps other calls.

> Consider moving to Hadoop for local mode
> ----------------------------------------
>                 Key: PIG-1053
>                 URL: https://issues.apache.org/jira/browse/PIG-1053
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Alan Gates
> We need to consider moving Pig to use Hadoop's local mode instead of its own.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to