hadoop 启动时不识别主机名称

java.net.UnknownHostException: hadoop102: hadoop102

        at java.net.InetAddress.getLocalHost(InetAddress.java:1475)

        at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:146)

        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)

        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)

        at java.security.AccessController.doPrivileged(Native Method)

        at javax.security.auth.Subject.doAs(Subject.java:415)


解决办法:

1)在/etc/hosts文件中添加192.168.1.102 hadoop102

2)主机名称不要起hadoop  hadoop000等特殊名称



你可能感兴趣的:(大数据报错及解决方案,大数据开发)