Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 03-02-2017 10:19 AM - edited 08-19-2019 02:02 AM
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?
Created 03-02-2017 10:46 AM
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" $@
;;
.
Created 03-02-2017 10:41 AM
Have you downloaded "hdf-mpack-name.tar.gz"
Please see the links:
Created 03-02-2017 01:02 PM
I downloaded the file, cannot execute the ambari-server command with install-mpack argument as mentioned above. PFA picture.
Created 03-02-2017 10:46 AM
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" $@
;;
.
Created 03-02-2017 01:09 PM
Can you please elaborate. What script are you talking about? How can I get that argument in ambari-server command.
Created 03-02-2017 01:15 PM
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!
.
Created on 03-02-2017 01:29 PM - edited 08-19-2019 02:02 AM
Seems some step has gone wrong in my environment. PFB picture for output.
Created 03-02-2017 01:36 PM
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
Created on 03-02-2017 01:57 PM - edited 08-19-2019 02:02 AM
PFB screenshot.
Created 03-02-2017 02:02 PM
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.