org.apache.hadoop.mapred.lib.MultipleOutputs.setCountersEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中org.apache.hadoop.mapred.lib.MultipleOutputs.setCountersEnabled()方法的一些代码示例,展示了MultipleOutputs.setCountersEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultipleOutputs.setCountersEnabled()方法的具体详情如下:
包路径:org.apache.hadoop.mapred.lib.MultipleOutputs
类名称:MultipleOutputs
方法名:setCountersEnabled

MultipleOutputs.setCountersEnabled介绍

[英]Enables or disables counters for the named outputs.

By default these counters are disabled.

MultipleOutputs supports counters, by default the are disabled. The counters group is the MultipleOutputs class name.
The names of the counters are the same as the named outputs. For multi named outputs the name of the counter is the concatenation of the named output, and underscore '_' and the multiname.
[中]启用或禁用命名输出的计数器。
默认情况下,这些计数器被禁用。
MultipleOutput支持计数器,默认情况下禁用。counters组是MultipleOutputs类名。
计数器的名称与命名输出的名称相同。对于多个命名输出,计数器的名称是命名输出、下划线“u”和多个名称的串联。

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-mapred-test

SequenceFileOutputFormat.class, LongWritable.class, Text.class);
MultipleOutputs.setCountersEnabled(conf, withCounters);

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-jobclient

Long.class, String.class);
MultipleOutputs.setCountersEnabled(conf, withCounters);

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-jobclient

SequenceFileOutputFormat.class, LongWritable.class, Text.class);
MultipleOutputs.setCountersEnabled(conf, withCounters);

相关文章