I am trying to setup ambari on a virtual machine and run into below issue. I researched with the error and tried all the inputs but no luck.
# yum repolist
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager
ambari | 2.9 kB 00:00
repo id repo name status
HDP HDP Version - HDP-18.104.22.168 175
HDP-UTILS HDP Utils Version - HDP-UTILS-22.214.171.124 43
ambari ambari-126.96.36.199 12
# yum install ambari-server
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager Setting up Install Process Package ambari-server-188.8.131.52-7.x86_64 already installed and latest version Nothing to do
# ambari-server setup
Using python /usr/bin/python
Traceback (most recent call last):
File "/usr/sbin/ambari-server.py", line 40, in <module>
from ambari_server.serverUpgrade import upgrade, upgrade_stack, set_current
File "/usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py", line 51, in <module>
from ambari_server.setupMpacks import replay_mpack_logs
File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 42, in <module>
from resource_management.libraries.functions.tar_archive import extract_archive, get_archive_root_dir
ImportError: cannot import name extract_archive
Any help is greatly appreciated.
Thank you very much for taking time and testing the installation. I have gone through all of your screenshots. This is what I am planning to do but I am running into issues at the very beginning of the installation of Ambari Server. I will further research into the issue I am running into. Will update you if I find anything.
Thank you very much for your time and fast response.
Have a great weekend!
Can you share the document you are using this cluster install, maybe I could see something that you aint't seeing 🙂 Are you using a satellite server for repos? Can you share the contents of your ambari,hdp and hdp-utils.repos??
I usually don't like to leave an issue un resolved!!
Sorry for my late response. I got busy over the weekend and totally forgot to respond back with details. I will gather all the details and message you. Thank you for your support.
Let me give you a little overview on how and where it all started.
Since we have only one Hadoop Cluster which started as a POC and later it was converted to Production environment , we didn't have a lower environment similar to production for testing. So I planned to standup a production like environment with 10 nodes.
I requested for 10 new virtual machines with RHEL 6.9 from devops team at our organization. They provided me 10 new vm's.Brand new vm's with no applications running on it. The devops team did one additional step on the new vm's - enabled chef on the new vm's. Upon the chef-client run it downloaded the below HDP repos , I didn't download the HDP repos neither I used them. I only downloaded ambari repo using the below links
repo id repo name
HDP HDP Version - HDP-184.108.40.206
HDP-UTILS HDP Utils Version - HDP-UTILS-220.127.116.11
Ambari-18.104.22.168 Repo Download Link wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/22.214.171.124/ambari.repo -O /etc/yum.repos.d/ambari.repo
I can stop the chef-client on the new vm's and remove the HDP repos. I want to setup a cluster with Ambari - 126.96.36.199 in the lab environment because currently we are running Ambari - 188.8.131.52 in production. We are planning to upgrade the Ambari version in production. Since I don't have a environment to test the upgrade , I wanted to setup the lab environment with the similar Ambari version in production and ran into ambari-setup issues.
The VM's doesn't have any HDP packages installed or distributed. The VM's are all new and having nothing related to HDP.
Please let me know if you need any further information or a webx session to look into it further.
Some additional info on the node on which I was trying to setup ambari
$ sudo yum list installed | grep -i ambari
ambari-agent.x86_64 184.108.40.206-418 @ambari
ambari-server.x86_64 220.127.116.11-7 @ambari
$ sudo yum list installed | grep -i hdp
hdparm.x86_64 9.43-4.el6 @RHEL6-Server-DVD
libgenders.x86_64 1.14-2.el6.rf @HDP-UTILS
pdsh.x86_64 2.27-1.el6.rf @HDP-UTILS
Resolution Found - Please follow below steps
1. Install Ambari Agent
2. Check the status of ambari agent - Start it if not up
3. Try yum install ambari-server
Thank you all for all the help.