There are 0 datanode(s) running and no node(s) are excluded in this operation

后端 未结 14 1897
清歌不尽
清歌不尽 2020-11-27 14:54

I have set up a multi node Hadoop Cluster. The NameNode and Secondary namenode runs on the same machine and the cluster has only one Datanode. All the nodes are configured o

14条回答
  •  心在旅途
    2020-11-27 15:04

    I had obtained the same error, in my case it was due to a bad configuration of the hosts files, first I have modified the hosts file of the master node adding the IPs of the slaves and also in each DataNode, I have modified the Hosts files to indicate the IPs of the NameNode and the rest of slaves.

    Same think like this

    adilazh1@master:~$ sudo cat /etc/hosts
    [sudo] contraseña para adilazh1:
    127.0.0.1       localhost
    192.168.56.100  master
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    192.168.56.101  slave1
    192.168.56.102  slave2
    

    Example slave1's hosts file

    127.0.0.1       localhost
    192.168.56.101  slave1
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    192.168.56.100  master
    192.168.56.102  slave2
    

提交回复
热议问题