hadoop 安装运行问题整理

1、

1、DataStreamer Exception: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /user/tmg/testdir/core-site.xml could only be replicated to 0

nodes, instead of 1


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

long@long-machine:~/hadoop-0.20.2/bin$ ./hadoop dfsadmin -report
Configured Capacity: 20870905856 (19.44 GB)
Present Capacity: 11939729408 (11.12 GB)
DFS Remaining: 11939704832 (11.12 GB)
DFS Used: 24576 (24 KB)
DFS Used%: 0%
Under replicated blocks: 0
Blocks with corrupt replicas: 0
Missing blocks: 0


-------------------------------------------------
Datanodes available: 1 (1 total, 0 dead)


Name: 127.0.0.1:50010
Decommission Status : Normal
Configured Capacity: 20870905856 (19.44 GB)
DFS Used: 24576 (24 KB)
Non DFS Used: 8931176448 (8.32 GB)
DFS Remaining: 11939704832(11.12 GB)
DFS Used%: 0%
DFS Remaining%: 57.21%
Last contact: Fri Aug 09 09:05:16 CST 2013

发现可用节点是1 应该不是节点的问题。

目前做了2步操作,解决了问题,但是仍有待研究 网上查阅的 具体原因未知

把safemode置于off状态:hadoop dfsadmin -safemode leave
关闭防火墙: /etc/init.d/iptables stop

http://blog.sina.com.cn/s/blog_3dbab2840100v441.html

你可能感兴趣的:(hadoop 安装运行问题整理)