我有一台运行本地Hadoop安装的Vagrant机器。 Hadoop工作正常,直到今天。今天,Vagrant不安全的SSH密钥停止工作,所以我不得不更换它。现在Hadoop无法运行。在日志中我看到:
17/09/18 09:35:41 INFO ipc.Client: Retrying connect to server: mymachine/192.168.33.10:8020. Already tried 0 time(s); maxRetries=45
17/09/18 09:36:01 INFO ipc.Client: Retrying connect to server: mymachine/192.168.33.10:8020. Already tried 1 time(s); maxRetries=45
17/09/18 09:36:21 INFO ipc.Client: Retrying connect to server: mymachine/192.168.33.10:8020. Already tried 2 time(s); maxRetries=45
17/09/18 09:36:41 INFO ipc.Client: Retrying connect to server: mymachine/192.168.33.10:8020. Already tried 3 time(s); maxRetries=45
声明here是它的数据节点 - > namenode通信问题。 core-site.xml
包含:
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://mymachine:8020</value>
</property>
</configuration>
哪个是对的。尝试getent hosts mymachine
会产生192.168.33.10
,这意味着主机正常。我试过sudo netstat -antp | grep 8020
并得到了:
tcp 0 1 10.0.2.15:42002 192.168.33.10:8020 SYN_SENT 2630/java
所以看来端口也没关系。但是,当我
tcp 0 1 10.0.2.15:42004 192.168.33.10:8020 SYN_SENT 2772/java
tcp 0 1 10.0.2.15:41998 192.168.33.10:8020 SYN_SENT 3312/java
curl http://mymachine:8020
时,我得不到回复。我检查了一台相同的机器,正确的答复应该是It looks like you are making an HTTP request to a Hadoop IPC port. This is not the correct port for the web interface on this daemon.
。
有什么想法吗?
答案 0 :(得分:0)
我认为以下是一些答案: 1.检查你是否可以&#34; ssh&#34;到没有密码的localhost; 2.启动hadoop时检查权限; 3.如果在你的机器上运行本地hadoop,它应该是127.0.0.1:8020。因为当网络断开连接时hadoop可能正常运行...