hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " (JIRA)" <>
Subject [jira] [Commented] (HIVE-2374) Make compression used between map reduce tasks configurable.
Date Tue, 16 Aug 2011 00:25:29 GMT

] commented on HIVE-2374:

This is an automatically generated e-mail. To reply, visit:

Review request for hive and Ning Zhang.


I added a field to MapredWork and MapredLocalWork which indicates whether it is intermediate
or not.  By intermediate, I mean that if the query is an insert, there is at least one other
map reduce task that is guaranteed to happen before the move.  If the query is not an insert,
intermediate applies to them all.  I determine this by defaulting the flag to true, and setting
it to false when the tasks to move the data into a table or file are generated.

If the work for a map reduce task (local or otherwise) is intermediate, then we set the compression
to be used on the output of the reduce to some configured value, the default is LZO.

This addresses bug HIVE-2374.


  trunk/common/src/java/org/apache/hadoop/hive/conf/ 1157918 
  trunk/conf/hive-default.xml 1157918 
  trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ 1157918 
  trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ 1157918 
  trunk/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ 1157918 
  trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/ 1157918 
  trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/ 1157918 
  trunk/ql/src/test/org/apache/hadoop/hive/ql/exec/ 1157918 
  trunk/ql/src/test/org/apache/hadoop/hive/ql/hooks/ PRE-CREATION

  trunk/ql/src/test/queries/clientpositive/intermediate_compression.q PRE-CREATION 
  trunk/ql/src/test/results/clientpositive/intermediate_compression.q.out PRE-CREATION 



I added a test query and hook to verify that the is intermediate flag is set properly in the

I also added a test to TestExecDriver which checks that the correct compression is used on
the output of the reduce for each value of the is intermediate flag.



> Make compression used between map reduce tasks configurable.
> ------------------------------------------------------------
>                 Key: HIVE-2374
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Kevin Wilfong
>            Assignee: Kevin Wilfong
>         Attachments: HIVE-2374.1.patch.txt
> We want to allow the compression between map reduce tasks to be configurable, similar
to the way it is between the map and reduce jobs is configurable.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message