Ambari安装组件出错

时间:2023-03-09 04:16:56
Ambari安装组件出错
Caught an exception while executing custom service command: <class 'ambari_agent.AgentException.AgentException'>: 'Script /var/lib/ambari-agent/cache/stacks/HDP/2.3/services/DOCK/package/scripts/master.py does not exist'; 'Script /var/lib/ambari-agent/cache/stacks/HDP/2.3/services/DOCK/package/scripts/master.py does not exist'

原因:ambari server节点上/var/lib/ambari-server/resources/stacks/HDP/2.3/services/DOCK/package目录下ambari重启没有生成archive.zip文件。

由于此目录下以前重启生成了.hash的隐藏文件,若此文件不删除的话,导致不会生成archive.zip文件。我这是先安装了服务,然后改了脚本需要在ambari中删除重新安装,需要同时删除.hash和archive.zip文件。然后重启ambari。安装服务时是将archive.zip文件拷贝到agent节点/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/DOCK/

目录下解压的。