Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Cannot find install-mpack : Issue while Installing the HDF Management Pack

avatar
Rising Star

Followed the below steps to install HDF management pack.

export host_os=centos7 
export ambari_version=2.4.1.0 
export hdf_ambari_mpack_url="http://public-repo-1.hortonworks.com/HDF/${host_os}/2.x/updates/2.0.0.0/tars/hdf_ambari_mp/hdf-ambari-mpack-2.0.0.0-579.tar.gz"  
export ambari_repo="http://public-repo-1.hortonworks.com/ambari/${host_os}/2.x/updates/${ambari_version}/ambari.repo"  

systemctl stop  firewalld.service  
systemctl disable firewalld  

yum install -y wget wget ${ambari_repo} -O /etc/yum.repos.d/ambari.repo
yum clean all  

yum install ambari-server -y  
ambari-server setup -s  
ambari-server install-mpack --mpack=${hdf_ambari_mpack_url} --purge --verbose 

I see there's no install-mpack option available for ambari-server command, PFB. Am I missing something here?

13158-mpack-issue.jpg

1 ACCEPTED SOLUTION

avatar
Master Mentor

@spdvnz

Also that argument details is present inside the script as following ":

# grep -A 3 'install-mpack' /usr/sbin/ambari-server
  install-mpack)
        echo -e "Installing management pack"
        $PYTHON "$AMBARI_PYTHON_EXECUTABLE" $@
        ;;

.

View solution in original post

13 REPLIES 13

avatar
Master Mentor

avatar
Rising Star

I downloaded the file, cannot execute the ambari-server command with install-mpack argument as mentioned above. PFA picture.

avatar
Master Mentor

@spdvnz

Also that argument details is present inside the script as following ":

# grep -A 3 'install-mpack' /usr/sbin/ambari-server
  install-mpack)
        echo -e "Installing management pack"
        $PYTHON "$AMBARI_PYTHON_EXECUTABLE" $@
        ;;

.

avatar
Rising Star

Can you please elaborate. What script are you talking about? How can I get that argument in ambari-server command.

avatar
Master Mentor

@spdvnz

In the "/usr/sbin/ambari-server" script you should see the option "install-mpack" as mentioned in my previous grep command.

Can you please share the output of the following command?

# ambari-server  install-mpack

Using python  /usr/bin/python
Installing management pack
ERROR: Management pack not specified!
ERROR: Exiting with exit code -1. 
REASON: Management pack not specified!

.

avatar
Rising Star

Seems some step has gone wrong in my environment. PFB picture for output.

13171-install-mpack.jpg

avatar
Master Mentor

@spdvnz

Your ambari-server version is 2.4.1 right? Can you please confirm the following:

# cat  /etc/yum.repos.d/ambari.repo 
[AMBARI.2.4.0.0-2.x]
name=Ambari 2.x
baseurl=http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.4.0.0-1225/
gpgcheck=1
gpgkey=http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

and

[root@erie1 ~]# ambari-server --version

avatar
Rising Star

PFB screenshot.

13172-ambari-server.jpg

avatar
Master Mentor

@spdvnz

You are using incorrect ambari version i guess it shows 2.2.2 where as in your very first update you mentioned 2.4.1.0 as following:

export ambari_version=2.4.1.0

.

Please use the correct ambari repo. If you want to use ambari 2.4.1.0 then you should be using the following:

wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

.

Uninstall 2.2.2 version of ambari and then install it again using the above mentioned repo url.