我是hadoop新手,所以我开始在上设置部分分布式hadoop集群 localhost
. 我创建了一个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
core-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>
yarn-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条答案
按热度按时间fgw7neuy1#
没有resourcemanager守护程序的最可能原因是http端口绑定中的错误。查看yarn resourcemanager-*的日志文件。你很容易找到错误的原因。