You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tez.apache.org by Madhusudan Ramanna <m....@ymail.com> on 2016/08/12 16:54:03 UTC

Questions about Tez

Hello all,
I've just started looking at Tez. I've setup Tez locally and have run sample MapReduce job with Tez as a replacement for Yarn MRV2. I plan to use Tez independently (No hive or pig).  I have the following questions
1.  Are there performance gains to use Tez for Mapreduce jobs apart from container reuse ? Want to make sure I'm not missing anything
2.  More technically, from what should be the behavior of a processor while generating outputs.  Should it write to all KeyValueWriters returned from getOutputs() in the processor.   The WordCount example retrieves an output by name and writes to it.  
thanks,Madhu

Re: Questions about Tez

Posted by Hitesh Shah <hi...@apache.org>.
When comparing just a simple MR job to a Tez dag with 2 vertices, the perf improvements are limited (as the plan is pretty much the same and data is transferred via a shuffle edge):
   - container re-use
   - pipelined sorter vs the MR sorter ( your mileage may vary here depending on the kind of work load )
   - auto-reduce parallelism
   - dynamic splits grouping for the map vertex ( assuming splits are calculated in the client )

For the second question, the dag plan/structure and the processor are both user-code and therefore which output to write to is driven by user/business logic. If you write a tee processor, it could write to all outputs if needed. A processor which re-partitions data to different downstream vertices could be coded to write diff data to each output if needed. The MapProcessor and ReduceProcessor assume MR semantics which means that they always assume one input and one output (likewise for the WordCount example). 

thanks
— Hitesh

> On Aug 12, 2016, at 9:54 AM, Madhusudan Ramanna <m....@ymail.com> wrote:
> 
> Hello all,
> 
> I've just started looking at Tez. I've setup Tez locally and have run sample MapReduce job with Tez as a replacement for Yarn MRV2. I plan to use Tez independently (No hive or pig).  I have the following questions
> 
> 1.  Are there performance gains to use Tez for Mapreduce jobs apart from container reuse ? Want to make sure I'm not missing anything
> 
> 2.  More technically, from what should be the behavior of a processor while generating outputs.  Should it write to all KeyValueWriters returned from getOutputs() in the processor.   The WordCount example retrieves an output by name and writes to it.  
> 
> thanks,
> Madhu