解决 Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: Protocol message

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a_hui_tai_lang/article/details/81676429

这个错误主要是端口号写错了,我来演示一下错误

[root@hadoop1 ~]# hdfs dfs -ls hdfs://192.168.0.37:50070/
ls: Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.; Host Details : local host is: "hadoop1/192.168.0.37"; destination host is: "hadoop1":50070;

这里写图片描述

那么怎么获取正确的端口号呢?
hdfs getconf -confKey fs.default.name
这里写图片描述
获取正确的端口号就可以正常访问hdfs啦!
这里写图片描述

猜你喜欢

转载自blog.csdn.net/a_hui_tai_lang/article/details/81676429
今日推荐