2014-11-02 71 views
1

我正嘗試在共享磁盤上的Hadoop目錄的少數機器上安裝hadoop集羣。 HDFS運行良好。但是當我嘗試啓動YARN時,ResourceTracker拋出一個BindException。 ResourceTracker配置運行的節點(ahti.d.umn.edu-131.212.41.9)是可訪問的(我可以通過SSH進入)並且端口(28025)也是打開的。YARN ResourceTrackerService失敗,狀態爲STARTED

org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService failed in state STARTED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.net.BindException: Problem binding to [ahti.d.umn.edu:28025] java.net.BindException: Cannot assign requested address; For more details see: http://wiki.apache.org/hadoop/BindException 
    org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.net.BindException: Problem binding to [ahti.d.umn.edu:28025] java.net.BindException: Cannot assign requested address; For more details see: http://wiki.apache.org/hadoop/BindException 
     at org.apache.hadoop.yarn.factories.impl.pb.RpcServerFactoryPBImpl.getServer(RpcServerFactoryPBImpl.java:139) 
     at org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC.getServer(HadoopYarnProtoRPC.java:65) 
     at org.apache.hadoop.yarn.ipc.YarnRPC.getServer(YarnRPC.java:54) 
     at org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService.serviceStart(ResourceTrackerService.java:159) 
     at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193) 
     at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:120) 
     at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceStart(ResourceManager.java:503) 
     at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193) 
     at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startActiveServices(ResourceManager.java:898) 
     at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$1.run(ResourceManager.java:938) 
     at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$1.run(ResourceManager.java:935) 
     at java.security.AccessController.doPrivileged(Native Method) 
     at javax.security.auth.Subject.doAs(Subject.java:422) 
     at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614) 
     at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.transitionToActive(ResourceManager.java:935) 
     at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:979) 
     at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193) 
     at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1104) 

以下是我的紗線的site.xml

<configuration> 
<property> 
    <name>yarn.resourcemanager.hostname</name> 
    <value>131.212.41.9</value> 
</property> 

<property> 
<name>yarn.resourcemanager.resource-tracker.address</name>  
<value>131.212.41.9:28025</value> 
</property> 

<property>  
<name>yarn.resourcemanager.scheduler.address</name>  
<value>131.212.41.9:8030</value> 
</property> 

<property>  
<name>yarn.resourcemanager.address</name>  
<value>131.212.41.9:8050</value> 
</property> 

<property>  
<name>yarn.resourcemanager.admin.address</name>  
<value>131.212.41.9:8041</value> 
</property> 

<property>  
<name>yarn.nodemanager.local-dirs</name>  
<value>/scratch/dfs/yarn</value> 
</property> 

<property>  
<name>yarn.log.dir</name>  
<value>/scratch/hadoop/yarn/logs</value> 
</property> 

</configuration> 

如果它的事項,我正在運行的Java-8。

任何關於如何解決它的線索?

回答

0

看起來可能是因爲兩個原因

可能已經運行使用的端口資源管理的其他一些實例。殺死該資源管理器實例並重新啓動。使用命令ps aux | grep -i resourcemanager查找資源管理器的進程ID,然後使用命令kill相同命令kill -9 <RESOURCE_MANAGER_PID>

Hadoop不完全支持JDK-8。請參閱link瞭解Hadoop支持的Java版本,如果選項1不起作用,請嘗試將Java版本降級到JDK7

相關問題