ambari 终止 background operations running
in case ambari API doesn't help. You can use following SQL queries to abort hung/queued/pending operations directly from ambari database.
- Stop Ambari-Server
ambari-server stop
-
Take backup of ambari database before making any changes to ambari db
-
Check IN_PROGRESS, QUEUED and PENDING operations.
ambari=> select task_id,role,role_command from host_role_command where status='IN_PROGRESS';
ambari=> select task_id,role,role_command from host_role_command where status='QUEUED' limit 100;
ambari=> select task_id,role,role_command from host_role_command where status='PENDING';
- Abort Operations
ambari=> update host_role_command set status='ABORTED' where status='QUEUED';
ambari=> update host_role_command set status='ABORTED' where status='PENDING';
ambari=> update host_role_command set status='ABORTED' where status='IN_PROGRESS';
- Start ambari-server
ambari-server start
转载:
作者:迷茫_小青年
链接:https://www.jianshu.com/p/e68a3dde44f6
本文来自博客园,作者:zk01,转载请注明原文链接:https://www.cnblogs.com/zhangxiaokui/p/16358468.html