Hdfs command line upload file error org.apache.hadoop.ipc.RemoteException (java.io.IOException)

Use hdfs dfs -put /source file path/destination file path
error org.apache.hadoop.ipc.RemoteException(java.io.IOException)

solution

First hdfs pause recommended stop-all-shto stop all, or stop-dfs-sh
distributed to delete the master node hadoop folder logs and tmp folders rm -r logs 和 rm -r tmp
master node
Insert picture description here
slave node
Insert picture description here

After the deletion is complete, format hadoop and hdfs namenode -format
enable hdfs.start-dfs.sh

Guess you like

Origin blog.csdn.net/NewDay_/article/details/108939957