[jira] Updated: (MAPREDUCE-1214) Add support for counters in Hadoop Local Mode

2010-01-12 Thread Ankit Modi (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAPREDUCE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ankit Modi updated MAPREDUCE-1214:
--

Attachment: MAPREDUCE-1214.2.patch

Hi Jeff,

Here is another patch based on suggestions provided in your patch. It does not 
change any api's.

The only issue pending in this is number of bytes written. The value that gets 
reported here is very high.

> Add support for counters in Hadoop Local Mode
> -
>
> Key: MAPREDUCE-1214
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1214
> Project: Hadoop Map/Reduce
>  Issue Type: Improvement
>Reporter: Ankit Modi
> Attachments: MAPREDUCE-1214.2.patch, MAPREDUCE-1214.patch
>
>
> Currently there is no support for counters ( Records and Bytes written ) in 
> Hadoop Local Mode.
> Pig requires to provide counters to user when running in Hadoop Local Mode.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (MAPREDUCE-1214) Add support for counters in Hadoop Local Mode

2009-12-16 Thread Ankit Modi (JIRA)

[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791293#action_12791293
 ] 

Ankit Modi commented on MAPREDUCE-1214:
---

Hey Jeff,

Looks like this patch is breaking couple of things.

I'll look into whats breaking and see if this patch is useful.

> Add support for counters in Hadoop Local Mode
> -
>
> Key: MAPREDUCE-1214
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1214
> Project: Hadoop Map/Reduce
>  Issue Type: Improvement
>Reporter: Ankit Modi
> Attachments: MAPREDUCE-1214.patch
>
>
> Currently there is no support for counters ( Records and Bytes written ) in 
> Hadoop Local Mode.
> Pig requires to provide counters to user when running in Hadoop Local Mode.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (MAPREDUCE-1214) Add support for counters in Hadoop Local Mode

2009-12-14 Thread Ankit Modi (JIRA)

[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790119#action_12790119
 ] 

Ankit Modi commented on MAPREDUCE-1214:
---

Hi Jeff

I am trying to access counter values in code in pig. This is how it is done for 
Hadoop MR mode.

I am not able to replicate the process in Hadoop Local mode as we don't have an 
AssignedJobId.

{code}
RunningJob rj = jobClient.getJob( job.getAssignedJobID() );
Counters counters = rj.getCounters();
Counters.Group taskgroup = 
counters.getGroup("org.apache.hadoop.mapred.Task$Counter");
value = taskgroup.getCounterForName("REDUCE_OUTPUT_RECORDS").getCounter();
value2 = taskgroup.getCounterForName("MAP_OUTPUT_RECORDS").getCounter();
{code}

Is this the correct way, or am I missing something ?

> Add support for counters in Hadoop Local Mode
> -
>
> Key: MAPREDUCE-1214
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1214
> Project: Hadoop Map/Reduce
>  Issue Type: Improvement
>Reporter: Ankit Modi
>
> Currently there is no support for counters ( Records and Bytes written ) in 
> Hadoop Local Mode.
> Pig requires to provide counters to user when running in Hadoop Local Mode.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (MAPREDUCE-1214) Add support for counters in Hadoop Local Mode

2009-11-13 Thread Ankit Modi (JIRA)
Add support for counters in Hadoop Local Mode
-

 Key: MAPREDUCE-1214
 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1214
 Project: Hadoop Map/Reduce
  Issue Type: Improvement
Reporter: Ankit Modi


Currently there is no support for counters ( Records and Bytes written ) in 
Hadoop Local Mode.

Pig requires to provide counters to user when running in Hadoop Local Mode.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.