出错环境
- 在云服务上搭建hadoop集群
- 起集群时namenode起不来
报错
java.net.BindException: Problem binding to [node01:9000] java.net.BindException: Cannot assign req
...
Caused by: java.net.BindException: Cannot assign requested address
...
解决方法
<!-- 在$HADOOP_HOME/etc/hadoop/core-site.xml中 -->
<!-- !!!配置namenode成内网ip!!! -->
<!-- 指定HDFS中NameNode的地址 -->
<property>
<name>fs.defaultFS</name>
<value>hdfs://node1:9000</value>
</property>