yarn一直启动不来 报拒绝连接异常

denghuafeng 安装 Hadoop YARN 04月21日提问

  • 0 回答
  • 137 浏览

yarn-site.xml

    <property>
  <name>yarn.resourcemanager.ha.enabled</name>
  <value>true</value>
</property>
<property>
  <name>yarn.resourcemanager.cluster-id</name>
  <value>spider-ren</value>
</property>
<property>
<name>yarn.resourcemanager.ha.id</name>
<value>rm1</value>
</property>
<property>
  <name>yarn.resourcemanager.ha.rm-ids</name>
  <value>rm1,rm2,rm3,rm4,rm5</value>
</property>
<property>
  <name>yarn.resourcemanager.hostname.rm1</name>
  <value>node-1</value>
</property>
<property>
  <name>yarn.resourcemanager.hostname.rm2</name>
  <value>node-2</value>
</property>
<property>
  <name>yarn.resourcemanager.hostname.rm3</name>
  <value>node-3</value>
</property>
<property>
  <name>yarn.resourcemanager.hostname.rm4</name>
  <value>node-4</value>
</property>
<property>
  <name>yarn.resourcemanager.hostname.rm5</name>
  <value>node-5</value>
</property>
<property>
  <name>yarn.resourcemanager.webapp.address.rm1</name>
  <value>node-1:8088</value>
</property>
<property>
  <name>yarn.resourcemanager.webapp.address.rm2</name>
  <value>node-2:8088</value>
</property>
<property>
  <name>yarn.resourcemanager.webapp.address.rm3</name>
  <value>node-3:8088</value>
</property>
<property>
  <name>yarn.resourcemanager.webapp.address.rm4</name>
  <value>node-4:8088</value>
</property>
<property>
  <name>yarn.resourcemanager.webapp.address.rm5</name>
  <value>node-5:8088</value>
</property>
<property>
  <name>hadoop.zk.address</name>
  <value>node-1:2181,node-2:2181,node-3:2181,node-4:2181,node-5:2181</value>
</property>
</configuration>

用以下命令访问

yarn rmadmin -getServiceState rm1

报如下错误信息

 INFO ipc.Client: Retrying connect to server: node-1/192.168.1.21:8033. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=1, sleepTime=1000 MILLISECONDS)

Operation failed: Call From spider-1/192.168.1.21 to node-1:8033 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused

求解决办法

访问http://node-1:8088 访问不了