[
https://issues-test.apache.org/jira/browse/HIVE-3628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265589#comment-16265589
]
Pankaj Khattar edited comment on HIVE-3628 at 12/22/17 12:54 PM:
-----------------------------------------------------------------
Usage:
public class UDAFEvaluator extends GenericUDAFEvaluator{
@Override
*public* *void* iterate(*final* +AggregationBuffer+ agg, *final* Object[]
parameters) *throws* HiveException
{ MapredContext.get().getReporter().getCounter(...).increment(1); }
}
was (Author: pankajkhattar):
Usage:
public class UDAFEvaluator extends GenericUDAFEvaluator{
@Override
*public* *void* iterate(*final* +AggregationBuffer+ agg, *final* Object[]
parameters) *throws* HiveException
{
MapredContext._get_().getReporter().getCounter(...).increment(1);
}
}
> Provide a way to use counters in Hive through UDF
> -------------------------------------------------
>
> Key: HIVE-3628
> URL: https://issues-test.apache.org/jira/browse/HIVE-3628
> Project: Hive
> Issue Type: Improvement
> Components: UDF
> Reporter: Viji
> Assignee: Navis
> Priority: Minor
> Labels: TODOC11
> Fix For: 0.11.0
>
> Attachments: HIVE-3628.D8007.1.patch, HIVE-3628.D8007.2.patch,
> HIVE-3628.D8007.3.patch, HIVE-3628.D8007.4.patch, HIVE-3628.D8007.5.patch,
> HIVE-3628.D8007.6.patch
>
>
> Currently it is not possible to generate counters through UDF. We should
> support this.
> Pig currently allows this.
--
This message was sent by Atlassian JIRA
(v7.6.0#76001)