代码之家  ›  专栏  ›  技术社区  ›  kulssaka

使用cloudbreak删除节点后,Ambari服务器不会重新启动

  •  0
  • kulssaka  · 技术社区  · 7 年前

    DB configs consistency check failed. Run "ambari-server start --skip-database-check" to skip. You may try --auto-fix-database flag to attempt to fix issues automatically. If you use this "--skip-database-check" option, do not make any changes to your cluster topology or perform a cluster upgrade until you correct the database consistency issues. See /var/log/ambari-server/ambari-server-check-database.log for more details on the consistency issues.
    

    查看日志并不能说明更多。我试着重新启动postgres,有时会成功,比如1对10次(怎么可能?)

    1 回复  |  直到 7 年前
        1
  •  0
  •   kulssaka    7 年前

    我打开ambari表查看:

    sudo su-postgres psql ambari-U ambari-W-p 5432

    当我看桌子的时候 , ,我看到集群注册了一个删除请求,只有一个添加请求:

    ambari=> select * from topology_logical_request;
     id | request_id |                        description
    ----+------------+-----------------------------------------------------------
      1 |          1 | Logical Request: Provision Cluster 'sentelab-perf'
     62 |         51 | Logical Request: Scale Cluster 'sentelab-perf' (+1 hosts)
    

    检查要删除的ID(通过添加节点操作跟踪所有请求)并开始删除它们(订单事项):

    delete from topology_hostgroup where id = 51;
    delete from topology_logical_request where id = 62;
    DELETE FROM topology_request WHERE id = 51;