这是怎么回事啊,跑MR任务的时候卡住不动啊,救命啊!昨天弄了一天没弄好啊~
把 <property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
注释掉换成
<property>
<name>mapred.job.tracker</name>
<value>127.0.0.1:9001</value>
<description>Host or IP and port of JobTracker.</description>
</property>
可能是Yarn的资源调度问题,你把mapred-site.xml的配置贴出来看看
<configuration>
<!--Execution framework set to Hadoop YARN.-->
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<!--MapReduce JobHistory Server host:port-->
<property>
<name>mapreduce.jobhistory.address</name>
<value>v1:10020</value>
</property>
<!-- MapReduce JobHistory Server Web UI host:port-->
<property>
<name>mapreduce.jobhistory.webapp.address</name>
<value>v1:19888</value>
</property>
<!-- Larger resource limit for maps-->
<property>
<name>mapreduce.map.memory.mb</name>
<value>1536</value>
</property>
</configuration>
好的,我试试~
牛批,可以了,谢谢老哥~