Pradeep Kamath commented on PIG-1096:

The load-store redesign to work with the proposal in 
http://wiki.apache.org/pig/LoadStoreRedesignProposal will also change unit 
tests a bit. We should delay this till the load-store-redesign branch is merged 
back to trunk.

In general there are a couple of issues which will need to be addressed to make 
this work.
 * There is already a PigExecTestCase class which was introduced with the 
intent of making it easy to switch a test case to run in either mode - we would 
have model all the concerned tests to be subclass of this and work in that model
 * In local mode, the input to a pig script would be a local file while in 
hadoop mode, it has to be a file on MiniCluster (there is a utility method 
Util.createInputFile() to create this file on the Minicluster). Tests which 
would need to work in both modes would need to abstract the setting up of the 
input so that the same test case can work in either mode.

> Make all unit tests run in MR or local mode based on a property
> ---------------------------------------------------------------
>                 Key: PIG-1096
>                 URL: https://issues.apache.org/jira/browse/PIG-1096
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Olga Natkovich
> Now that we have both local and MR mode based on Hadoop, it should be pretty 
> easy to make all tests run in either mode.

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