[root@master ~]# hdfs fsck -list-corruptfileblocks
FileSystem is inaccessible due to:
java.io.IOException: Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.; Host Details : local host is: "master/192.168.56.102"; destination host is: "master":9000;
这里cdh设置为8022端口(8020端口也可以用)
[root@master ~]# hdfs dfs -ls hdfs://192.168.56.102:8020
ls: `hdfs://192.168.56.102:8020': No such file or directory
[root@master ~]# hdfs dfs -ls hdfs://192.168.56.102:8022
ls: `hdfs://192.168.56.102:8022': No such file or directory