INFO retry.RetryInvocationHandler: java.io.IOException: Failed on local exception: org.apache.hadoop.ipc.RpcException: RPC response exceeds maximum data length; Host Details : local host is: "slaver2/10.5.24.149"; destination host is: "slaver1":9000; , while invoking ClientNamenodeProtocolTranslatorPB.getFileInfo over slaver1/10.5.24.148:9000 after 1 failover attempts. Trying to failover after sleeping for 997ms.
由于本人之前创建过hadoop账户单独安装过hdfs,又在root账户下使用CDH方式安装HDFS,在hadoop账户切换root账户时,使用的是`su` 命令,导致把hadoop的环境变量携带到root下导致以上问题,改为`su -` 切换root即可解决以上问题