启动ResouceManager不成功, 查看日志文件:

Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.; Host Details : local host is: "xxx/xxx.xx.xx.xx"; destination host is: "xxxx":9000;

使用命令hdfs dfs -ls /同样报以上错误.

通过curl hadoop102:9000测试, 发现可以连接到该端口. 排除namenode启动不成功的问题.

最终问题解决:

因为配置namenode的高可用, 需要使用域名空间, 做以下配置:

<property>
    <name>dfs.nameservices</name>
    <value>nameservice1</value>
</property>

<property>
    <name>fs.defaultFS</name>
    <value>nameservice1</value>
</property>

高可用的具体配置详见: NameNode 高HA

通过命令hdfs getconf -confKey fs.default.name查看配置是否生效

>>> hdfs getconf -confKey fs.default.name
hdfs://nameservice1

相关文章:

  • 2022-12-23
  • 2021-10-11
  • 2022-01-08
  • 2021-09-30
  • 2021-05-12
  • 2022-12-23
  • 2021-09-23
  • 2021-07-02
猜你喜欢
  • 2022-12-23
  • 2021-08-27
  • 2021-04-28
  • 2021-07-02
  • 2022-12-23
  • 2021-11-27
  • 2021-05-21
相关资源
相似解决方案