Hadoop配置出错信息汇总

Hadoop配置出错信息汇总

1:INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 0 time(s).

运行
ximo@Ubuntu:~$ hadoop fs -ls

14/01/08 22:01:41 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 0 time(s).
14/01/08 22:01:42 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 1 time(s).
14/01/08 22:01:43 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 2 time(s).
14/01/08 22:01:44 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 3 time(s).
14/01/08 22:01:45 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 4 time(s).
14/01/08 22:01:46 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 5 time(s).
14/01/08 22:01:47 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 6 time(s).
14/01/08 22:01:48 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 7 time(s).
14/01/08 22:01:49 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 8 time(s).
14/01/08 22:01:50 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:12200. Already tried 9 time(s).
mkdir: Call From Lenovo-G460-LYH/127.0.0.1 to localhost:12200 failed on connection exception: Java.net.ConnectException: 拒绝连接; For more details see: 

有几种原因:

1)hadoop配置
主要是$HADOOP_HOME/conf/hdfs-site.xml、mapred-site.xml、core-site.xml中的配置是否正确,伪分布式模式可以参考前面的blog,或是网上的文章,一大堆一大堆的。
2)机器连不通
如果是分布式的,还要看hadoop客户端机器能不能ping通hdfs机器,注意hdfs的端口号
3)namenode没有启动(本人是这种原因)
$stop-all.sh 如果出现no namenode stop则表示是namenode的问题
$hadoop namenode -format
$start-all.sh
4)其他。

相关阅读

Ubuntu 13.04上搭建Hadoop环境

Ubuntu 12.10 +Hadoop 1.2.1版本集群配置

Ubuntu上搭建Hadoop环境(单机模式+伪分布模式)

Ubuntu下Hadoop环境的配置

单机版搭建Hadoop环境图文教程详解

搭建Hadoop环境(在Winodws环境下用虚拟机虚拟两个Ubuntu系统进行搭建)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/5ac6972d272a591ccddb6b976db6ee0f.html