Ambari启用HDFS HA失败回滚

  1. 获取NAMENODE节点信息
    curl -u admin:admin -H “X-Requested-By: ambari” -X GET http://ambari-server:8080/api/v1/clusters/c1/host_components?HostRoles/component_name=NAMENODE

  2. 选择额外的namenode节点删除
    curl -u admin:admin -H “X-Requested-By: ambari” -X DELETE http://ambari-server:8080/api/v1/clusters/c1/hosts/node1/host_components/NAMENODE

  3. 删除脏数据
    每个journalnode: rm -rf /hadoop/hdfs/journal/cityos
    第二个namenode: mv /hadoop/hdfs/namenode /hadoop/hdfs/namenode-bad

  4. Ambari 页面回滚hdfs配置,重启服务,重新启用ha

你可能感兴趣的:(平台运维,hdfs,ambari,hadoop)