阿里云使用idea通过hdfs api来上传文件时出现could only be written to 0 of the 1 minReplication nodes.错误
生活随笔
收集整理的這篇文章主要介紹了
阿里云使用idea通过hdfs api来上传文件时出现could only be written to 0 of the 1 minReplication nodes.错误
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題描述:
使用阿里云服務器,在本地windows電腦上使用idea進行hdfs api操作來上傳文件時出現錯誤如下:
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /a.xlsx 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.
可以發現,是在連接服務器centos8:9866端口的時候連接超時導致的報錯。估計是服務器的防火墻端口沒有打開。
到aliyun服務器控制臺,添加防火墻規則,將9866端口加上
添加規則后成功上傳
總結
以上是生活随笔為你收集整理的阿里云使用idea通过hdfs api来上传文件时出现could only be written to 0 of the 1 minReplication nodes.错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 血栓清道夫机器人_血栓“清道夫”找到了!
- 下一篇: python selenium下载,在p