1.在操作hadoop fs -cp 时
org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No lease on
修改 hadoop的配置文件 conf/hdfs-site.xml,添加
dfs.datanode.max.xcievers 4096
该参数限制了datanode所允许同时执行的发送和接受任务的数量,缺省为256
2.java.net.SocketTimeoutException: 60000 millis timeout while waiting for channel to be ready for read. ch :
客户端conf/hdfs-site.xml设置属性“dfs.socket.timeout”,我这里值为"180000"