【问题标题】:Apache Crunch: how to create custom countersApache Crunch:如何创建自定义计数器
【发布时间】:2013-06-25 00:41:13
【问题描述】:

我想使用 org.apache.hadoop.mapreduce.Reducer.Context.getCounter API 将自定义 counters 添加到我的 Apache Crunch 作业中。有人知道如何从 Crunch 管道访问上下文吗?

【问题讨论】:

    标签: java apache hadoop mapreduce


    【解决方案1】:

    显而易见的地方是

    org.apache.crunch.DoFn#getCounter

    你猜怎么着?就在那里……

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-17
      相关资源
      最近更新 更多