Hadoop无法启动namenode问题解决方法之一

完全分布式已搭建好,在启动所有节点的时候,发现namenode未启动成功,查询log日志才发现原由:

.......................
2020-08-05 11:43:16,879 INFO org.apache.hadoop.hdfs.DFSUtil: Starting Web-server for hdfs at: http://liujian01:50070
2020-08-05 11:43:17,020 INFO org.mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2020-08-05 11:43:17,038 INFO org.apache.hadoop.http.HttpRequestLog: Http request log for http.requests.namenode is not defined
2020-08-05 11:43:17,061 INFO org.apache.hadoop.http.HttpServer2: Added global filter 'safety' (class=org.apache.hadoop.http.HttpServer2$QuotingInputFilter)
2020-08-05 11:43:17,070 INFO org.apache.hadoop.http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context hdfs
2020-08-05 11:43:17,070 INFO org.apache.hadoop.http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context static
2020-08-05 11:43:17,071 INFO org.apache.hadoop.http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context logs
2020-08-05 11:43:17,208 INFO org.apache.hadoop.http.HttpServer2: Added filter 'org.apache.hadoop.hdfs.web.AuthFilter' (class=org.apache.hadoop.hdfs.web.AuthFilter)
2020-08-05 11:43:17,211 INFO org.apache.hadoop.http.HttpServer2: addJerseyResourcePackage: packageName=org.apache.hadoop.hdfs.server.namenode.web.resources;org.apache.hadoop.hdfs.web.resources, pathSpec=/webhdfs/v1/*
2020-08-05 11:43:17,399 INFO org.apache.hadoop.http.HttpServer2: HttpServer.start() threw a non Bind IOException
java.net.SocketException: Unresolved address
	at sun.nio.ch.Net.translateToSocketException(Net.java:130)
	at sun.nio.ch.Net.translateException(Net.java:156)
	at sun.nio.ch.Net.translateException(Net.java:162)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:76)
	at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
	at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:885)
	at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:826)
...........

发现是地址错了

Hadoop无法启动namenode问题解决方法之一_第1张图片

修改hdfs-site.xml文件中的:


    
        dfs.namenode.http-address
        liujian01:50070
    

主机名多写了个0,修改一下即可

你可能感兴趣的:(hadoop)