两个方法,新建文件夹没问题,上传文件的时候报错了。本机hosts也配置过了,webUI显示没问题
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /hdfsApi01/data1 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.