当我试图在本地机器上启动datanode时,我遇到了一个问题。它只是说地址正在使用中,无法从下面的异常开始,并且没有给出任何端口号。我在想jetty服务器使用的端口62498(来自日志)是否已经在使用中,但是检查了它,我没有看到任何进程附加到它。
我看过其他线程,但它们都谈到hdfs-site.xml中的属性dfs.datanode.address,我已经将其从默认的50070更改为60100,因为默认的50070在前面给出了一个问题。
关于如何检查启动程序现在可能失败的端口以及如何将其更改为其他端口,有什么想法吗?
我正在windows10上安装。
20/11/19 10:41:12 INFO datanode.DataNode: Opened streaming server at /0.0.0.0:60100
20/11/19 10:41:12 INFO datanode.DataNode: Balancing bandwith is 1048576 bytes/s
20/11/19 10:41:12 INFO datanode.DataNode: Number threads for balancing is 5
20/11/19 10:41:12 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
20/11/19 10:41:12 INFO server.AuthenticationFilter: Unable to initialize FileSignerSecretProvider, falling back to use random secrets.
20/11/19 10:41:12 INFO http.HttpRequestLog: Http request log for http.requests.datanode is not defined
20/11/19 10:41:12 INFO http.HttpServer2: Added global filter 'safety' (class=org.apache.hadoop.http.HttpServer2$QuotingInputFilter)
20/11/19 10:41:12 INFO http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context datanode
20/11/19 10:41:12 INFO http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context static
20/11/19 10:41:12 INFO http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context logs
20/11/19 10:41:12 INFO http.HttpServer2: Jetty bound to port 62498
20/11/19 10:41:12 INFO mortbay.log: jetty-6.1.26
20/11/19 10:41:12 INFO mortbay.log: Started HttpServer2$SelectChannelConnectorWithSafeStartup@localhost:62498
20/11/19 10:41:13 INFO mortbay.log: Stopped HttpServer2$SelectChannelConnectorWithSafeStartup@localhost:0
20/11/19 10:41:13 INFO datanode.DataNode: Shutdown complete.
20/11/19 10:41:13 FATAL datanode.DataNode: Exception in secureMain
java.net.BindException: Address already in use: bind
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:475)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1021)
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:455)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:440)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:844)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:194)
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:340)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:748)
20/11/19 10:41:13 INFO util.ExitUtil: Exiting with status 1
暂无答案!
目前还没有任何答案,快来回答吧!