Hadoop资源管理器无法启动

时间:2015-02-14 07:39:43

标签: java hadoop client ipc resourcemanager

我是Hadoop的新手,所以我开始在localhost上设置部分分布式的Hadoop集群。我创建了一个wordcount程序jar来运行,但是当我运行这个jar时,会出现以下错误九次:

NFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9040. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)

当我输入jps命令时,我的服务启动是:

9154 DataNode

9777 NodeManager

8967 NameNode

9441 SecondaryNameNode

10060 Jps

芯-site.xml中

<configuration>

  <property>
  <name>fs.default.name</name>
  <value>hdfs://localhost:9000</value>
  </property>

  <property>
  <name>hadoop.tmp.dir</name>
  <value>/usr/local/hadoop/tmp</value>
  <description>A base for other temporary directories.</description>
  </property>

  <property>
     <name>fs.file.impl</name>
     <value>org.apache.hadoop.fs.LocalFileSystem</value>
     <description>The FileSystem for file: uris.</description>
  </property>
  -
  <property>
     <name>fs.hdfs.impl</name>
     <value>org.apache.hadoop.hdfs.DistributedFileSystem</value>
     <description>The FileSystem for hdfs: uris.</description>
  </property>

</configuration>

纱-site.xml中

<configuration>

  <!-- Site specific YARN configuration properties -->
  <property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
  </property>
  <property>
    <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
    <value>org.apache.hadoop.mapred.ShuffleHandler</value>
  </property>
  <property>
    <name>yarn.resourcemanager.resource-tracker.address</name>
    <value>localhost:9025</value>
  </property>
  <property>
    <name>yarn.resourcemanager.scheduler.address</name>
    <value>localhost:9030</value>
  </property>
  <property>
    <name>yarn.resourcemanager.address</name>
    <value>localhost:9040</value>
  </property>
  <property>
    <name>yarn.nodemanager.address</name>
    <value>localhost:9050</value>
  </property>
  <property>
    <name>yarn.nodemanager.localizer.address</name>
    <value>localhost:9060</value>
  </property>

</configuration> 

mapred-site.xml中

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

  <property>
    <name>mapred.job.tracker</name>
    <value>localhost:8021</value>
  </property>

</configuration>

帮助表示感谢。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

没有ResourceManager守护程序的最可能的原因是HTTP端口绑定中的错误。浏览yarn-resourcemanager- *的日志文件。您可以轻松找到错误原因。