红联Linux门户
Linux帮助

CentOS Linux修改/etc/hostname导致hadoop运行缓慢

发布时间:2015-10-01 10:48:36来源:linux网站作者:hknaruto

/etc/hostname内容如下

vm7.0 

# bin/hdfs namenode -format  最后几行日志如下

/************************************************************ 
SHUTDOWN_MSG: Shutting down NameNode at vm7.0/124.232.132.92 
************************************************************/ 


修改/etc/hosts 如下

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 vm7.0 
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 


再次运行

# bin/hdfs namenode -format


速度恢复正常。


hadoop2.7.1在Ubuntu 32位上安装单机版伪分布环境:http://www.linuxdiyf.com/linux/14286.html

CentOS配置Hadoop环境变量:http://www.linuxdiyf.com/linux/12579.html

ubuntu15.04安裝hadoop2.6.0及eclipse开发环境配置:http://www.linuxdiyf.com/linux/12474.html

Ubuntu下配置Hadoop环境:http://www.linuxdiyf.com/linux/10191.html