> On July 24, 2014, 10:33 p.m., Cheolsoo Park wrote:
> > trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/TezLauncher.java,
> >  line 330
> > <https://reviews.apache.org/r/23787/diff/2/?file=641128#file641128line330>
> >
> >     Do we need to pass pc given conf is already built out of conf?
> >     
> >     Configuration conf = 
> > ConfigurationUtil.toConfiguration(pc.getProperties());

We need pc, LoaderProcessor need to serialize it before invoking getSplit, 
ParallelismSetter need to set cross hint to pc.

It is possible skip conf though.


> On July 24, 2014, 10:33 p.m., Cheolsoo Park wrote:
> > trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/optimizers/LoaderProcessor.java,
> >  lines 73-78
> > <https://reviews.apache.org/r/23787/diff/2/?file=641130#file641130line73>
> >
> >     Aren't these duplicate since they're set in TezDagBuilder? Am I wrong?

These need to be there to make PigInputFormat.getSplits work. I verified these 
are minimum set.


> On July 24, 2014, 10:33 p.m., Cheolsoo Park wrote:
> > trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/optimizers/LoaderProcessor.java,
> >  lines 119-122
> > <https://reviews.apache.org/r/23787/diff/2/?file=641130#file641130line119>
> >
> >     Do we need to set these properties again here becasue I see the same 
> > properties are set in the payload of vertices in TezDagBuilder?

Same above, these are necessary to get PigInputFormat.getSplits work


- Daniel


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23787/#review48679
-----------------------------------------------------------


On July 24, 2014, 12:45 a.m., Daniel Dai wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/23787/
> -----------------------------------------------------------
> 
> (Updated July 24, 2014, 12:45 a.m.)
> 
> 
> Review request for pig.
> 
> 
> Bugs: PIG-4057
>     https://issues.apache.org/jira/browse/PIG-4057
> 
> 
> Repository: pig
> 
> 
> Description
> -------
> 
> Summary of changes:
> 1. Take tez parallelism estimation out from TezDagBuilder to 
> ParallelismSetter, so we can get estimated parallelism of the cross before we 
> creating vertex of GFCross
> 2. Take InputSplit generate out from TezDagBuilder to LoaderProcessor, since 
> we need to know the parallelism of maps before ParallelismSetter
> 3. set pig.cross.parallelism.hint.(operator_key) in conf
>     * In tez, this is done when we encounter cross vertex
>     * In MR, this is done when we encounter the first GFCross
> 4. GFCross will use pig.cross.parallelism.hint.(operator_key) to determine 
> the #partition
> 
> 
> Diffs
> -----
> 
>   trunk/src/org/apache/pig/PigConfiguration.java 1612189 
>   
> trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
>  1612189 
>   
> trunk/src/org/apache/pig/backend/hadoop/executionengine/physicalLayer/relationalOperators/POGlobalRearrange.java
>  1612189 
>   
> trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/TezCompiler.java 
> 1612189 
>   
> trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/TezDagBuilder.java
>  1612189 
>   
> trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/TezLauncher.java 
> 1612189 
>   
> trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/TezOperator.java 
> 1612189 
>   
> trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/optimizers/LoaderProcessor.java
>  PRE-CREATION 
>   
> trunk/src/org/apache/pig/backend/hadoop/executionengine/tez/optimizers/ParallelismSetter.java
>  PRE-CREATION 
>   trunk/src/org/apache/pig/impl/builtin/GFCross.java 1612189 
>   
> trunk/src/org/apache/pig/newplan/logical/relational/LogToPhyTranslationVisitor.java
>  1612189 
>   trunk/test/e2e/pig/tests/nightly.conf 1612189 
>   trunk/test/org/apache/pig/test/TestGFCross.java 1612189 
> 
> Diff: https://reviews.apache.org/r/23787/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Daniel Dai
> 
>

Reply via email to