[英]Hadoop namenode rejecting connections!? What am I doing wrong?
My configuration: 我的配置:
Server-class machine cluster (4 machines), each with RHEL, 8GB RAM, quad core processors. 服务器级机器集群(4台机器),每台机器都配有RHEL,8GB RAM,四核处理器。 I setup machine 'B1' to be the master, rest of 'em as slaves (B2,B3,B4).
我将机器'B1'设置为主机,其余的'作为从机(B2,B3,B4)。 Kicked off dfs-start.sh, name node came up on 53410 on B1.
启动dfs-start.sh,名称节点在B1上的53410上出现。 Rest of the nodes are not able to connect to B1 on 53410!
其余节点无法连接到53410上的B1!
Here's what I did so far: 这是我到目前为止所做的:
All nodes are reachable from one another and all /etc/hosts are setup with correct mapping for ip addresses. 所有节点都可以相互访问,所有/ etc / hosts都设置正确的ip地址映射。 So, I am pretty much clueless at this point.
所以,我现在几乎无能为力。 Why on earth would the namenode reject connections - is there a setting in hadoop conf, that I should be aware of to allow external clients connect remotely on the namenode port?
为什么namenode拒绝连接 - 在hadoop conf中是否有设置,我应该知道允许外部客户端在namenode端口上远程连接?
Previous answers were not clear to me. 以前的答案对我来说并不清楚。 Basically each hadoop servers (node or namenode) will create a server and listen on the IP associated with its lookup name.
基本上每个hadoop服务器(节点或名称节点)将创建一个服务器并侦听与其查找名称相关联的IP。
Let say you have 3 box (box1, box2, box3), the /etc/hosts file should look like this: 假设您有3个框(box1,box2,box3),/ etc / hosts文件应如下所示:
127.0.0.1 localhost
192.168.10.1 box1
192.168.10.2 box2
192.168.10.3 box3
Instead of : 代替 :
127.0.0.1 localhost box1
192.168.10.2 box2
192.168.10.3 box3
//(this is incorrect, box one will be listening exclusively on 127.0.0.1)
fixed this.. it was an incorrect entry in my /etc/hosts. 修复了..这是我的/ etc / hosts中的错误条目。 All nodes were connecting on loopback to master.
所有节点都在环回连接到主节点。
Try changing in conf/core-site.xml 尝试在conf / core-site.xml中进行更改
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:54310</value>
</property>
from localhost to your machine name? 从localhost到您的机器名称?
使用正确的文件权限设置DataNode:
chmod 755 /home/svenkata/hadoop/datanode/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.