集群上提交运行jar包程序,出现如下错误:
Exception in thread "main" 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: "hadoop/192.168.10.100"; destination host is: "hadoop":9870;
分析原因:
这个错误主要是端口号写错了!!!
解决方法:
1、获取正确的端口号:
hdfs getconf -confKey fs.default.name
2、将代码中的端口号改为正确端口后,重新打包、上传、运行
成功了呀!!!



