独家de记忆
2018-08-30 09:37
采纳率: 0%
浏览 1.2k

java中调用hdfs上传文件异常

hadoop内存情况:

 Name: 172.16.100.254:9866 (aliyunhost)
Hostname: aliyunhost
Decommission Status : Normal
Configured Capacity: 42139451392 (39.25 GB)
DFS Used: 49152 (48 KB)
Non DFS Used: 4084449280 (3.80 GB)
DFS Remaining: 35890798592 (33.43 GB)
DFS Used%: 0.00%
DFS Remaining%: 85.17%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Xceivers: 1
Last contact: Thu Aug 30 17:25:22 CST 2018
Last Block Report: Thu Aug 30 16:27:10 CST 2018
Num of Blocks: 1

jps

 4112 DataNode
6498 Jps
4552 ResourceManager
4010 NameNode
4271 SecondaryNameNode

文件上传异常信息

 org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /test1/renhh/test1.txt could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1 node(s) are excluded in this operation.

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • radarwave 2018-08-31 02:15

    datanode在运行但是有问题被排除掉了。看看datanode的日志检查下datanode有什么问题吧。

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题