有没有办法在配置单元中为udf/udaf/udtf添加用户定义的计数器?
gojuced71#
是的,有,https://issues-test.apache.org/jira/browse/hive-3628例子:
Usage: public class UDAFEvaluator extends GenericUDAFEvaluator{ @Override public void iterate(final AggregationBuffer agg, final Object[] parameters) throws HiveException { MapredContext.get().getReporter().getCounter(...).increment(1); } }
1条答案
按热度按时间gojuced71#
是的,有,https://issues-test.apache.org/jira/browse/hive-3628
例子: