You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Aneela Saleem <an...@platalytics.com> on 2016/06/28 19:09:24 UTC
datanode is unable to connect to namenode
Hi all,
I have setup two nodes cluster with security enabled. I have everything
running successful like namenode, datanode, resourcemanager, nodemanager,
jobhistoryserver etc. But datanode is unable to connect to namenode, as i
can see only one node on the web UI. checking logs of datanode gives
following warning:
*WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting
to server: hadoop-master/192.168.23.206:8020 <http://192.168.23.206:8020>*
Rest of the things look fine. Please help me in this regard, what could be
the issue?
Re: datanode is unable to connect to namenode
Posted by Aneela Saleem <an...@platalytics.com>.
Following is the result of telnet
Trying 192.168.23.206...
Connected to hadoop-master.
Escape character is '^]'.
On Wed, Jun 29, 2016 at 3:57 AM, Aneela Saleem <an...@platalytics.com>
wrote:
> Thanks Sreebalineni for the response.
>
> This is the result of the *netstat -a | grep 8020* command
>
> tcp 0 0 hadoop-master:8020 *:* LISTEN
> tcp 0 0 hadoop-master:33356 hadoop-master:8020
> ESTABLISHED
> tcp 0 0 hadoop-master:8020 hadoop-master:33356
> ESTABLISHED
> tcp 0 0 hadoop-master:55135 hadoop-master:8020
> TIME_WAIT
>
> And this is my */etc/hosts* file
>
> #127.0.0.1 localhost
> #127.0.1.1 vm6-VirtualBox
> 192.168.23.206 hadoop-master platalytics.com vm6-VirtualBox
> 192.168.23.207 hadoop-slave
> # The following lines are desirable for IPv6 capable hosts
> ::1 ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
>
>
> Can you please tell me what's wrong with above configuration and how can i
> check whether it is firewall issue?
>
> Thanks
>
> On Wed, Jun 29, 2016 at 12:11 AM, sreebalineni . <sr...@gmail.com>
> wrote:
>
>> Are you able to telnet ping. Check the firewalls as well
>> On Jun 29, 2016 12:39 AM, "Aneela Saleem" <an...@platalytics.com> wrote:
>>
>>> Hi all,
>>>
>>> I have setup two nodes cluster with security enabled. I have everything
>>> running successful like namenode, datanode, resourcemanager, nodemanager,
>>> jobhistoryserver etc. But datanode is unable to connect to namenode, as i
>>> can see only one node on the web UI. checking logs of datanode gives
>>> following warning:
>>>
>>> *WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem
>>> connecting to server: hadoop-master/192.168.23.206:8020
>>> <http://192.168.23.206:8020>*
>>>
>>> Rest of the things look fine. Please help me in this regard, what could
>>> be the issue?
>>>
>>
>
Re: datanode is unable to connect to namenode
Posted by Aneela Saleem <an...@platalytics.com>.
Thanks Sreebalineni for the response.
This is the result of the *netstat -a | grep 8020* command
tcp 0 0 hadoop-master:8020 *:* LISTEN
tcp 0 0 hadoop-master:33356 hadoop-master:8020
ESTABLISHED
tcp 0 0 hadoop-master:8020 hadoop-master:33356
ESTABLISHED
tcp 0 0 hadoop-master:55135 hadoop-master:8020
TIME_WAIT
And this is my */etc/hosts* file
#127.0.0.1 localhost
#127.0.1.1 vm6-VirtualBox
192.168.23.206 hadoop-master platalytics.com vm6-VirtualBox
192.168.23.207 hadoop-slave
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Can you please tell me what's wrong with above configuration and how can i
check whether it is firewall issue?
Thanks
On Wed, Jun 29, 2016 at 12:11 AM, sreebalineni . <sr...@gmail.com>
wrote:
> Are you able to telnet ping. Check the firewalls as well
> On Jun 29, 2016 12:39 AM, "Aneela Saleem" <an...@platalytics.com> wrote:
>
>> Hi all,
>>
>> I have setup two nodes cluster with security enabled. I have everything
>> running successful like namenode, datanode, resourcemanager, nodemanager,
>> jobhistoryserver etc. But datanode is unable to connect to namenode, as i
>> can see only one node on the web UI. checking logs of datanode gives
>> following warning:
>>
>> *WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting
>> to server: hadoop-master/192.168.23.206:8020 <http://192.168.23.206:8020>*
>>
>> Rest of the things look fine. Please help me in this regard, what could
>> be the issue?
>>
>
Re: datanode is unable to connect to namenode
Posted by "sreebalineni ." <sr...@gmail.com>.
Are you able to telnet ping. Check the firewalls as well
On Jun 29, 2016 12:39 AM, "Aneela Saleem" <an...@platalytics.com> wrote:
> Hi all,
>
> I have setup two nodes cluster with security enabled. I have everything
> running successful like namenode, datanode, resourcemanager, nodemanager,
> jobhistoryserver etc. But datanode is unable to connect to namenode, as i
> can see only one node on the web UI. checking logs of datanode gives
> following warning:
>
> *WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting
> to server: hadoop-master/192.168.23.206:8020 <http://192.168.23.206:8020>*
>
> Rest of the things look fine. Please help me in this regard, what could be
> the issue?
>