我在配置 core-site.xml 文件中将端口更改为 5000 上的 9000 并启动了一个脚本
./hadoop namenode
结果我收到了以下消息(我只给出了从屏幕上看到的部分,因为在日志文件中没有注册)
13/02/17 22:42:39 INFO http.HttpServer: Added global filtersafety (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
13/02/17 22:42:40 INFO http.HttpServer: dfs.webhdfs.enabled=false
13/02/17 22:42:40 INFO http.HttpServer: Port returned by webServer.getConnectors()[0].getLocalPort() before open() is -1. Opening the listener on 50070
13/02/17 22:42:40 INFO http.HttpServer: listener.getLocalPort() returned 50070 webServer.getConnectors()[0].getLocalPort() returned 50070
13/02/17 22:42:40 INFO http.HttpServer: Jetty bound to port 50070
13/02/17 22:42:40 INFO mortbay.log: jetty-6.1.26
13/02/17 22:42:52 INFO mortbay.log: Started SelectChannelConnector@0.0.0.0:50070
13/02/17 22:42:52 INFO namenode.Namenode: Web-server up at: 0.0.0.0:50070
13/02/17 22:42:52 INFO ipc.Server: IPC Server Responder: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server listener on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 0 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 1 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 9 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 8 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 7 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 6 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 5 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 4 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 3 on 5000: starting
13/02/17 22:42:52 INFO ipc.Server: IPC Server handler 2 on 5000: starting
它的进程停止了,并且已经挂了几个小时。上次已经是这样了,我删除了它对 Ctrl+Z 的点击,但结果是在下次运行 Namenode 的恶魔的情况下,在帮助下
./hadoop namenode
我收到了有关 Namenode 恶魔启动错误的消息。我该怎么办:停止进程(但是需要重置虚拟机并且可以更改端口,并且长期不清楚 - 下次是否会挂起)或等待?但在任何情况下,同时情况令人绝望(关于 Namenode 启动),因此我希望提供替代选项。