问题描述:
[atguigu@hadoop102 hadoop-3.1.3]$ hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.3.jar wordcount /wcinput /wcoutput
输出文件没有内容。
解决办法:
修改默认配置文件“mapred-default.xml”
<property>
<name>mapreduce.task.timeout</name>
<value>8000000</value> #延长时间600000修改为8000000
<description>The number of milliseconds before a task will be
terminated if it neither reads an input, writes an output, nor
updates its status string. A value of 0 disables the timeout.
</description>
</property>