hadoop报错report: Call From xxx to xxx failed on connect

转载 2016年08月30日 10:05:38

flume异常日志:

hdfs dfsadmin -report,报错如下:


“report: Call From slave1.hadoop/192.168.1.106 to namenode:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused”
其中namenode是主节点。于是去主节点上查看了一下端口信息,主节点上执行命令:

sudo netstat -nap|grep 90

发现9000端口的状态是TIME_WAIT,于是百度了一下,参考了一下高手说的方法,改了一下主节点的hosts文件重启hdfs,子节点上执行命令"hdfs dfsadmin -report"不再报错。原文地址:

http://blog.csdn.net/renfengjun/article/details/25320043

我的主节点hosts文件其中有一行如下:

::1    namenode        localhost6.localdomain6 localhost6

里面的namenode就是主节点主机名,把该行注释(前面加个#号)

#::1    namenode        localhost6.localdomain6 localhost6

重启(执行:$./stop-all.sh 再执行 $./start-all.sh)

在子节点上执行命令

hdfs dfsadmin -report

结果:

Java HotSpot(TM) Client VM warning: You have loaded library /usr/local/hadoop/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
15/04/11 13:02:36 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Configured Capacity: 0 (0 B)
Present Capacity: 0 (0 B)
DFS Remaining: 0 (0 B)
DFS Used: 0 (0 B)
DFS Used%: NaN%
Under replicated blocks: 0
Blocks with corrupt replicas: 0
Missing blocks: 0

-------------------------------------------------

未报先前的错误,Eclipse上reconnect后也不报错了,只是没东西。探索中。。。。。

相关文章推荐

eclipse链接hadoop2.5.1时报错Error:Call From roo/10.30.12.xxx to hostname1:9000 failed on connection excep

问题:我用eclipse(Mar.2 Release(4.5.2))连接hadoop2.5.1时报错:Error:Call From roo/10.30.12.xxx to hostname1:900...

Goldengate 源端 dump进程无法启动报;scoket buffer size set to xxx connect failed to targetIP:7819,error

一;问题现象; Goldengate 源端 dump进程无法启动报; scoket buffer size set to 5000000 (flush size connect failed to t...

Failed to extend swap file from 0 kb to xxx kb.

昨天公司的esxi服务器碰到这么个问题;  问题描述大致 : 问题出来的过程是这样的,  这个esxi服务器上装了7个虚拟机,有windows,有centos;当我昨天在搭建jenkins的构建的...

Hive On Spark报错:Failed to execute spark task, org.apache.hadoop.hive.ql.metadata.HiveException

解决Hive On Spark报错:Failed to execute spark task, org.apache.hadoop.hive.ql.metadata.HiveException,关键是...

confluence创建文件报错 can not create to file /tmp/xxx Errcode:28,引出的 df命令高级用法

使用confluence创建文件时,报错如下: Can't create/write to file '/tmp/#sql_118c_0.MYI' (Errcode: 28); nested exc...

Spring aop报错:com.sun.proxy.$Proxy cannot be cast to xxx

描述错误 有一个 BaseService 接口 public interface BaseService 2.有一个BaseServiceImpl 实现类 public class B...

【Hadoop】Call to localhost/127.0.0.1:8020 failed on connection exception

14/07/02 14:22:46 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tri...

c++ template 多层继承下找不到纯虚拟函数实现 报错:undefined reference to "xxx"

如下代码中,定义了3个类,ClassA,ClassB,ClassC,依次为被继承关系,ClassA,ClassB是模板类, 在ClassA中定义了一个纯虚拟函数getKeyFromObject,实现...
  • 10km
  • 10km
  • 2015-10-13 14:37
  • 1029

Mysql报错java.sql.SQLException:null,message from server:"Host '27,45,38,132' is not allowed to connect

Mysql连接报错:java.sql.SQLException:null,message from server:"Host '27,45,38,132' is not allowed to conn...

mac eclipse报错:failed to get the required adt version number from the sdk的解决办法

mac的eclipse报错:failed to get the required adt version number from the sdk原因与解决办法
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)