美文网首页
How to Abort a hung ambari opera

How to Abort a hung ambari opera

作者: 迷茫_小青年 | 来源:发表于2021-08-02 10:06 被阅读0次

In case ambari API doesn't help. You can use following SQL queries to abort hung/queued/pending operations directly from ambari database.

  1. Stop Ambari-Server

ambari-server stop

  1. Take backup of ambari database before making any changes to ambari db

  2. 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';

  1. 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';

  1. Start ambari-server

ambari-server start

相关文章

网友评论

      本文标题:How to Abort a hung ambari opera

      本文链接:https://www.haomeiwen.com/subject/bkvdvltx.html