我在configuration core-site.xml文件中用9000对5000更改了端口,并启动了一个脚本
./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启动),因此,我希望其他选择将提供。
1条答案
按热度按时间ssm49v7z1#
如何更好地理解/分析您的错误:
./hadoop namenode &> out
从这里可以读取完整的错误堆栈跟踪(stdin和stdout都被重定向到out
文件)按ctrl-z可以将进程放在后台(不会杀死它们)。因此出现“端口已在使用”错误。您需要终止当前正在运行的应用程序并重新启动)
在运行该命令之前,请确保端口是否尚未使用