Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

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

avatar

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
Super 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
Super Mentor

avatar

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

avatar
Super 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

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

avatar
Super 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

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

13171-install-mpack.jpg

avatar
Super 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

PFB screenshot.

13172-ambari-server.jpg

avatar
Super 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.

avatar

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
Super 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

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

avatar
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

Labels