搭建HA问题

  1. 搭建好HA后,使用start-dfs.sh启动集群,发现namenode过一会(10s)就掉,
    再通过hdfs --daemon start namenode 启动后,运行正常.
    在core-site.xml中加入如下两个配置:

    ipc.client.connect.max.retries
    100
    Indicates the number of retries a client will make to establish
    a server connection.

ipc.client.connect.retry.interval 1000 Indicates the number of milliseconds a client will wait for before retrying to establish a server connection.
  1. 把Active的NN kill掉, 另外两个StandBy的NN没有故障转移.
    主要查看zkfc的日志.
    可能的原因: java.lang.RuntimeExeption: Unable to fence Namenode at hostname / hostname:port
    java.lang.RuntimeExeption: Unable to fence Namenode at hadoop102 / hadoop102:9000

    通过安装 yum install -y psmisc 组件解决问题。

  2. 在nn1上格式化NameNode以后, 在别的机器进行同步时报出如下异常
    HA is not enabled for this namenode

    检查一下$HADOOP_HOME的环境变量是否指向新的ha集群。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值