【Hadoop】 NameNode无法启动,日志提示file:/// has no authority,导致不能访问50070端口

环境:

CentOS7

hadoop-2.5.0-cdh5.3.6

jdk1.8.0_162

查看日志提示

2018-08-05 13:24:26,408 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.
java.lang.IllegalArgumentException: Invalid URI for NameNode address (check fs.defaultFS): file:/// has no authority.
        at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:420)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:410)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.getRpcServerAddress(NameNode.java:461)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.loginAsNameNodeUser(NameNode.java:561)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:581)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:756)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:740)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1430)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1496)
2018-08-05 13:24:26,411 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2018-08-05 13:24:26,413 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG:
SHUTDOWN_MSG: Shutting down NameNode at qqqweqwe.com/192.168.228.3

 

原core-site.xml配置为:

 
    fs.defaultFS
    hdfs://qqqweqwe.com:8020
 

解决方法:

修改core-site.xml文件

 
    fs.default.name
    hdfs://qqqweqwe.com:8020
 

 

 

你可能感兴趣的:(Hadoop)