qq_38522268
wzng
采纳率50%
2020-05-18 20:39

idea使用javaapi向hadoop上传文件时报错

5
已采纳

我在使用本地idea向云服务器里的hadoop上传数据时报错:
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /a.txt could only be replicated to 0 nodes instead of minReplication (=1). There are 1 datanode(s) running and 1 node(s) are excluded in this operation.

网上查过一些,大都是 There are 0 datanode(s) running and 0 node(s) are excluded in this operation.
而我的是, There are 1 datanode(s) running and 1 node(s) are excluded in this operation.
求问怎么解决

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答