“hadoop namenode -format” returns a java.net.UnknownHostException

前端 未结 4 487
走了就别回头了
走了就别回头了 2020-12-16 05:36

I\'m currently learning hadoop and I\'m trying to setup a single node test as defined in http://hadoop.apache.org/common/docs/current/single_node_setup.html

I\'ve co

4条回答
  •  情书的邮戳
    2020-12-16 05:50

    First get the host name of your computer. It can be obtained by running $hostname command. Then add 127.0.0.1 localhost hostname into the /etc/hosts file. That should solve the problem.

提交回复
热议问题