欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Yarn Connecting to ResourceManager

程序员文章站 2022-07-15 12:55:12
...
18/04/27 09:09:58 INFO RMProxy: Connecting to ResourceManager at cn-bji-p-dmp02/10.86.210.12:8050
18/04/27 09:09:59 INFO Client: Retrying connect to server: cn-bji-p-dmp02/10.86.210.12:8050. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)
18/04/27 09:10:00 INFO Client: Retrying connect to server: cn-bji-p-dmp02/10.86.210.12:8050. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)
18/04/27 09:10:01 INFO Client: Retrying connect to server: cn-bji-p-dmp02/10.86.210.12:8050. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)
18/04/27 09:10:02 INFO Client: Retrying connect to server: cn-bji-p-dmp02/10.86.210.12:8050. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)

18/04/27 09:09:58 INFO RMProxy: Connecting to ResourceManager at cn-bji-p-dmp02/10.86.210.12:8050
18/04/27 09:09:59 INFO Client: Retrying connect to server: cn-bji-p-dmp02/10.86.210.12:8050. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)
18/04/27 09:10:00 INFO Client: Retrying connect to server: cn-bji-p-dmp02/10.86.210.12:8050. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)
18/04/27 09:10:01 INFO Client: Retrying connect to server: cn-bji-p-dmp02/10.86.210.12:8050. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)

18/04/27 09:10:02 INFO Client: Retrying connect to server: cn-bji-p-dmp02/10.86.210.12:8050. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000 MILLISECONDS)

查看cn-bji-p-dmp02服务器8050端口,发现此端口不通。


查看yarn-site.xml配置:

发现


  <property>
    <name>yarn.resourcemanager.address</name>
    <value>cn-bji-p-dmp02:8050</value>
  </property>
  <property>
    <name>yarn.resourcemanager.admin.address</name>
    <value>cn-bji-p-dmp02:8033</value>
  </property>
  <property>
    <name>yarn.resourcemanager.scheduler.address</name>
    <value>cn-bji-p-dmp02:8030</value>
  </property>
  <property>
    <name>yarn.resourcemanager.resource-tracker.address</name>
    <value>cn-bji-p-dmp02:8041</value>

  </property>

可能

yarn.resourcemanager.address

是由

yarn.resourcemanager.scheduler.address

的端口自动生成的。

修改成

  <property>
    <name>yarn.resourcemanager.address</name>
    <value>cn-bji-p-dmp02:8032</value>
  </property>
  <property>
    <name>yarn.resourcemanager.admin.address</name>
    <value>cn-bji-p-dmp02:8033</value>
  </property>
  <property>
    <name>yarn.resourcemanager.scheduler.address</name>
    <value>cn-bji-p-dmp02:8030</value>
  </property>
  <property>
    <name>yarn.resourcemanager.resource-tracker.address</name>
    <value>cn-bji-p-dmp02:8031</value>
  </property>