Hortonworks HDP HA需要手动执行的命令

1

Manual Steps Required: Create Checkpoint on NameNode

    1. Login to the NameNode host DataBase-01.
    2. Put the NameNode in Safe Mode (read-only mode):
      sudo su -l hdfs -c 'hdfs dfsadmin -safemode enter'
    3. Once in Safe Mode, create a Checkpoint:
      sudo su -l hdfs -c 'hdfs dfsadmin -saveNamespace'
    4. You will be able to proceed once Ambari detects that the NameNode is in Safe Mode and the Checkpoint has been created successfully.
If the  Next button is enabled before you run the  "Step 3: Create a Checkpoint" command, it means there is a recent Checkpoint already and you may proceed without running the  "Step 3: Create a Checkpoint" command.

2

Manual Steps Required: Initialize JournalNodes

  1. Login to the NameNode host DataBase-01.
  2. Initialize the JournalNodes by running:
    sudo su -l hdfs -c 'hdfs namenode -initializeSharedEdits'
  3. You will be able to proceed once Ambari detects that the JournalNodes have been initialized successfully.

3

Manual Steps Required: Initialize NameNode HA Metadata

  1. Login to the NameNode host DataBase-01.
  2. Initialize the metadata for NameNode automatic failover by running:
    sudo su -l hdfs -c 'hdfs zkfc -formatZK'
  1. Login to the Additional NameNode host DataBase-02.
    Important! Be sure to login to the Additional NameNode host.
    This is a different host from the Steps 1 and 2 above.
  2. Initialize the metadata for the Additional NameNode by running:
    sudo su -l hdfs -c 'hdfs namenode -bootstrapStandby'

Please proceed once you have completed the steps above.

 

...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值