Hadoop WordCount应用程序永不终止

时间:2018-10-23 08:24:21

标签: java hadoop mapreduce hdfs word-count

我正在尝试在Hadoop中运行一个简单的字数示例,运行jar之后,我的程序陷入了ACCEPTED状态,但最终状态似乎是不确定的。

我的yarn-site.xml是

<?xml version="1.0"?>
<configuration>
<property>
  <name>yarn.nodemanager.resource.memory-mb</name>
  <value>2200</value>
  <description>Amount of physical memory, in MB, that can be allocated for containers.</description>
</property>

<property>
  <name>yarn.scheduler.minimum-allocation-mb</name>
  <value>500</value>
</property>
</configuration>

mapred-site.xml是:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
<property>
            <name>mapreduce.framework.name</name>
            <value>yarn</value>
    </property>
</configuration>

enter image description here

enter image description here

请告诉我该怎么办。谢谢。

0 个答案:

没有答案