2016-06-23 12 views
1

私のクラスタにhadoop糸をインストールしています。しかし、私のスレーブマシンの1つは、サービスspark_shuffleが状態INITEDで失敗したためNodeManagerを起動できません。hadoop-yarn - NodeManagerがspark_shuffleのために起動できない

hadoopに関連するすべての/ tmp/*を削除しようとしましたが、hdfsを再フォーマットします。しかし、何も動作しない、私は今、手がかりがない

私を助けてくれますか?私は、例外がスローされた理由です実行しているいくつかのサービスがまだあるjava.net.BindException: Address already in use、あなたはすべての実行中のサービスを停止していないかもしれないと思う

あなた
16/06/23 11:31:03 INFO service.AbstractService: Service spark_shuffle failed in state INITED; cause: java.net.BindException: Address already in use 
java.net.BindException: Address already in use 
     at sun.nio.ch.Net.bind0(Native Method) 
     at sun.nio.ch.Net.bind(Net.java:433) 
     at sun.nio.ch.Net.bind(Net.java:425) 
     at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) 
     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) 
     at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) 
     at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485) 
     at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089) 
     at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430) 
     at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415) 
     at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903) 
     at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198) 
     at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348) 
     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357) 
     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) 
     at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) 
     at java.lang.Thread.run(Thread.java:745) 
16/06/23 11:31:03 FATAL containermanager.AuxServices: Failed to initialize spark_shuffle 
org.apache.hadoop.service.ServiceStateException: java.net.BindException: Address already in use 
     at org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:59) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:172) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:143) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:245) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:292) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:547) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:595) 
Caused by: java.net.BindException: Address already in use 
     at sun.nio.ch.Net.bind0(Native Method) 
     at sun.nio.ch.Net.bind(Net.java:433) 
     at sun.nio.ch.Net.bind(Net.java:425) 
     at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) 
     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) 
     at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) 
     at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485) 
     at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089) 
     at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430) 
     at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415) 
     at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903) 
     at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198) 
     at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348) 
     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357) 
     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) 
     at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) 
     at java.lang.Thread.run(Thread.java:745) 
16/06/23 11:31:03 INFO service.AbstractService: Service org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices failed in state INITED; cause: org.apache.hadoop.service.ServiceStateException: java.net.BindException: Address already in use 
org.apache.hadoop.service.ServiceStateException: java.net.BindException: Address already in use 
     at org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:59) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:172) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:143) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:245) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:292) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:547) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:595) 
Caused by: java.net.BindException: Address already in use 
     at sun.nio.ch.Net.bind0(Native Method) 
     at sun.nio.ch.Net.bind(Net.java:433) 
     at sun.nio.ch.Net.bind(Net.java:425) 
     at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) 
     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) 
     at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) 
     at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485) 
     at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089) 
     at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430) 
     at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415) 
     at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903) 
     at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198) 
     at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348) 
     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357) 
     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) 
     at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) 
     at java.lang.Thread.run(Thread.java:745) 
16/06/23 11:31:03 INFO service.AbstractService: Service org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl failed in state INITED; cause: org.apache.hadoop.service.ServiceStateException: java.net.BindException: Address already in use 
org.apache.hadoop.service.ServiceStateException: java.net.BindException: Address already in use 
     at org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:59) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:172) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:143) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:245) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:292) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:547) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:595) 
Caused by: java.net.BindException: Address already in use 
     at sun.nio.ch.Net.bind0(Native Method) 
     at sun.nio.ch.Net.bind(Net.java:433) 
     at sun.nio.ch.Net.bind(Net.java:425) 
     at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) 
     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) 
     at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) 
     at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485) 
     at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089) 
     at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430) 
     at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415) 
     at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903) 
     at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198) 
     at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348) 
     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357) 
     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) 
     at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) 
     at java.lang.Thread.run(Thread.java:745) 
16/06/23 11:31:03 INFO service.AbstractService: Service NodeManager failed in state INITED; cause: org.apache.hadoop.service.ServiceStateException: java.net.BindException: Address already in use 
org.apache.hadoop.service.ServiceStateException: java.net.BindException: Address already in use 
     at org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:59) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:172) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:143) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:245) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:292) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:547) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:595) 
Caused by: java.net.BindException: Address already in use 
     at sun.nio.ch.Net.bind0(Native Method) 
     at sun.nio.ch.Net.bind(Net.java:433) 
     at sun.nio.ch.Net.bind(Net.java:425) 
     at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) 
     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) 
     at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) 
     at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485) 
     at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089) 
     at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430) 
     at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415) 
     at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903) 
     at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198) 
     at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348) 
     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357) 
     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) 
     at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) 
     at java.lang.Thread.run(Thread.java:745) 
16/06/23 11:31:03 INFO impl.MetricsSystemImpl: Stopping NodeManager metrics system... 
16/06/23 11:31:03 INFO impl.MetricsSinkAdapter: timeline thread interrupted. 
16/06/23 11:31:03 INFO impl.MetricsSystemImpl: NodeManager metrics system stopped. 
16/06/23 11:31:03 INFO impl.MetricsSystemImpl: NodeManager metrics system shutdown complete. 
16/06/23 11:31:03 FATAL nodemanager.NodeManager: Error starting NodeManager 
org.apache.hadoop.service.ServiceStateException: java.net.BindException: Address already in use 
     at org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:59) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:172) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:143) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:245) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:292) 
     at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:547) 
     at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:595) 
Caused by: java.net.BindException: Address already in use 
     at sun.nio.ch.Net.bind0(Native Method) 
     at sun.nio.ch.Net.bind(Net.java:433) 
     at sun.nio.ch.Net.bind(Net.java:425) 
     at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) 
     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) 
     at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) 
     at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485) 
     at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089) 
     at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430) 
     at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415) 
     at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903) 
     at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198) 
     at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348) 
     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357) 
     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) 
     at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) 
     at java.lang.Thread.run(Thread.java:745) 
16/06/23 11:31:03 INFO nodemanager.NodeManager: SHUTDOWN_MSG: 
/************************************************************ 
SHUTDOWN_MSG: Shutting down NodeManager at grey15/10.1.1.39 
************************************************************/ 

答えて

3

をたくさんありがとうございました。すべてのサービスを停止しようとしましたが、もう一度試してみることができます。

+0

私は試しましたが、何が起こったのか把握できません。だから私はすべてを再インストールすることにしました。今は大丈夫です。ありがとうございます – hminle

+0

あなたのマシンの他のサービスでポートが使用されているかどうかを確認できます。あなたが時々助けてくれる根本的な原因を見つけてください。 –

+0

はい、私はこのリンクの手順に従おうとしますが、ログファイルでもポートが何であるかを調べることはできません https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1- server-ports.html – hminle

関連する問題