amenode日志报错

org.apache.Hadoop.http.HttpServer2: HttpServer.start() threw a non Bind IOException
Java.NET.BindException: Port in use: 0.0.0.0:50070

查询stackoverflow,发现解决方式为在hdfs-site.xml文件中修改端口,添加

 

[plain] view plain copy
 
  1. <property>  
  2. <name>dfs.http.address</name>  
  3. <value>50070</value>  
  4. </property>  

把50070改为其他端口

 修改端口存在未知错误,最好不好修改端口

发现错误

java.lang.IllegalArgumentException: Does not contain a valid host:port authority: 50060
发现修改端口比较困难,查看50070被谁占用

解决方法:

lsof -i tcp:50070

得到PID 

kill -9 PID

 

相关文章:

  • 2021-05-25
  • 2022-12-23
  • 2021-10-30
  • 2021-04-07
  • 2021-10-24
  • 2022-02-12
  • 2021-10-29
  • 2021-12-13
猜你喜欢
  • 2022-02-09
  • 2021-06-23
  • 2021-12-14
  • 2021-11-16
  • 2021-04-16
相关资源
相似解决方案