添加节点以测试扩展然后使用cloudbreak删除该节点后,服务ambari-server不会重新启动。
发布时的错误是:
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,有时它可以工作,就像10次一样(怎么可能?)
答案 0 :(得分:0)
我的理由更深入,而不仅仅是重新启动postgres。
我打开了ambari表来查看它:
sudo su - postgres psql ambari -U ambari -W -p 5432 (密码是bigdata)当我查看表 topology_logical_request , topology_request 和 topology_hostgroup 时,我看到群集注册了一个删除请求,只有一个添加请求:
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;
关闭\ q,重新启动ambari-server,它就可以了!