Support Questions

Find answers, ask questions, and share your expertise

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
Rising Star

Okay. For now, I cannot connect to the hortonworks repo from nifi cluster. So I downloaded and copied ambari.repo to below directory.

/etc/yum.repos.d/ 

Since no internet connection server setup cannot be completed, PFB.

13173-ambari-server-setup.jpg

Can you please suggest the location to place this repomdxml file if required?

Thanks

avatar
Master Mentor

@spdvnz

Internet is needed to install packages via yum. Else you might want to configure the "Offline Local Repo" as described in the ambari doc:

http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-installation/content/setting_up_a_...

avatar
Rising Star

Uninstalled and installed again. Installed HDF mpack. Thanks @Jay SenSharma

avatar
Master Mentor

@spdvnz

Does the following link work for you:

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

This should set you up with the latest supported Ambari release for HDF.

After having the correct Ambari server version installed, proceed with the installation:

- # yum install ambari-server

- # ambari-server setup

- # ambari-server install-mpack --mpack=http://public-repo-1.hortonworks.com/HDF/centos7/2.x/updates/2.1.2.0/tars/hdf_ambari_mp/hdf-ambari-mpack-2.1.2.0-10.tar.gz --purge --verbose

- # ambari-server start

Thanks,

Matt