Skip to content

Instantly share code, notes, and snippets.

@JonZeolla
Created October 10, 2017 14:58
Show Gist options
  • Save JonZeolla/4c3f6c39e1896a39b7c48891aeb68675 to your computer and use it in GitHub Desktop.
Save JonZeolla/4c3f6c39e1896a39b7c48891aeb68675 to your computer and use it in GitHub Desktop.
mpack fix
[root@server ~]# ambari-server install-mpack --mpack=/data/metron-0.4.1-cherrypick/metron_mpack-0.4.1.0.tar.gz --verbose
Using python /usr/bin/python
Installing management pack
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Installing management pack /data/metron-0.4.1-cherrypick/metron_mpack-0.4.1.0.tar.gz
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Download management pack to temp location /var/lib/ambari-server/data/tmp/metron_mpack-0.4.1.0.tar.gz
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Expand management pack at temp location /var/lib/ambari-server/data/tmp/metron_mpack-0.4.1.0/
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Stage management pack metron-ambari.mpack-0.4.1.0 to staging location /var/lib/ambari-server/resources/mpacks/metron-ambari.mpack-0.4.1.0
ERROR: Management pack metron-ambari.mpack-0.4.1.0 already installed!
ERROR: Exiting with exit code -1.
REASON: Management pack metron-ambari.mpack-0.4.1.0 already installed!
[root@server ~]# ambari-server uninstall-mpack --mpack-name=metron-ambari.mpack-0.4.1.0
Using python /usr/bin/python
Uninstalling management pack
ERROR: No management packs found that can be uninstalled!
ERROR: Exiting with exit code -1.
REASON: No management packs found that can be uninstalled!
[root@server ~]# ambari-server upgrade-mpack --mpack=/data/metron-0.4.1-cherrypick/metron_mpack-0.4.1.0.tar.gz --verbose
Using python /usr/bin/python
Upgrading management pack
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Download management pack to temp location /var/lib/ambari-server/data/tmp/metron_mpack-0.4.1.0.tar.gz
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Expand management pack at temp location /var/lib/ambari-server/data/tmp/metron_mpack-0.4.1.0/
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
ERROR: No management packs found that can be upgraded!
ERROR: Exiting with exit code -1.
REASON: No management packs found that can be upgraded!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment