Hadoop 集群节点启动失败

2021-04-13 14:27:07 浏览数 (1)

java.net.UnknownHostException: node03: node03: 未知的名称或服务 at java.net.InetAddress.getLocalHost(InetAddress.java:1505) at org.apache.hadoop.security.SecurityUtil.getLocalHostName(SecurityUtil.java:219) at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:239) at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2467) at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2516) at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2698) at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2722) Caused by: java.net.UnknownHostException: node03: 未知的名称或服务 at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) at java.net.InetAddress.getLocalHost(InetAddress.java:1500) … 6 more 2019-11-07 17:08:33,536 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1 2019-11-07 17:08:33,537 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG: /************************************************************

这个要查看你的 cat /etc/hosts 里面 你的IP和你的主机名是否是对应的关系 如果对应关系不对 vim /etc/hosts 进行编辑修改

0 人点赞