[ 
https://issues.apache.org/jira/browse/HIVE-2479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120303#comment-13120303
 ] 

jirapos...@reviews.apache.org commented on HIVE-2479:
-----------------------------------------------------


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



trunk/ql/src/java/org/apache/hadoop/hive/ql/MapRedStats.java
<https://reviews.apache.org/r/2167/#comment5322>

    don't put the counter names here, let's use a map and pass it the hook


- Yongqiang


On 2011-10-04 17:27:43, Kevin Wilfong wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/2167/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2011-10-04 17:27:43)
bq.  
bq.  
bq.  Review request for hive, Ramkumar Vadali and Yongqiang He.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  I added the counters mentioned in the task to the MapRedStats class, and 
modified HadoopJobExecHelper to collect them.
bq.  
bq.  I got tired of writing the same code over and over again, so I modified 
the way MapRedStats and HadoopJobExecHelper treat task counters.  MapRedStats 
now has an enum with all of the task counters we want to collect, it is a 
subset of the enum in Task$Counter.  Task is package private so the enum in it 
is unavailable.  MapRedStats now contains a map from the enum values to the 
values of the counters, if they were set.  HadoopJobExecHelper loops over the 
enum values and tries to get a value for each counter.  As long as the new 
getter and setter methods are used the functionality is the same, in particular 
for the getter, if a counter was set, it returns the value of the counter, 
otherwise it returns -1.
bq.  
bq.  
bq.  This addresses bug Hive-2479.
bq.      https://issues.apache.org/jira/browse/Hive-2479
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    trunk/ql/src/java/org/apache/hadoop/hive/ql/MapRedStats.java 1178612 
bq.    
trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/HadoopJobExecHelper.java 
1178612 
bq.  
bq.  Diff: https://reviews.apache.org/r/2167/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  I ran some queries to verify the counters were being populated.
bq.  
bq.  I also ran a few of the unit test queries to verify I hadn't broken 
anything.
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Kevin
bq.  
bq.


                
> Log more Hadoop task counter values in the MapRedStats class.
> -------------------------------------------------------------
>
>                 Key: HIVE-2479
>                 URL: https://issues.apache.org/jira/browse/HIVE-2479
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Kevin Wilfong
>            Assignee: Kevin Wilfong
>
> We should log more of the Hadoop task tracker counters in the MapRedStats 
> class, in order to make them available to hooks and improve logging.  
> Specifically these are the counters we should add:
>     MAP_SPILL_CPU,
>     MAP_SPILL_WALLCLOCK,
>     MAP_SPILL_NUMBER,
>     MAP_SPILL_BYTES,
>     MAP_MEM_SORT_CPU,
>     MAP_MEM_SORT_WALLCLOCK,
>     MAP_MERGE_CPU,
>     MAP_MERGE_WALLCLOCK,
>     REDUCE_SHUFFLE_BYTES,
>     REDUCE_COPY_WALLCLOCK,
>     REDUCE_COPY_CPU,
>     REDUCE_SORT_WALLCLOCK,
>     REDUCE_SORT_CPU,
>     MAP_TASK_WALLCLOCK,
>     REDUCE_TASK_WALLCLOCK,
>     MAP_INPUT_BYTES

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to