# 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-2.3.4.0 175 HDP-UTILS HDP Utils Version - HDP-UTILS-1.1.0.20 43 ambari ambari-2.5.0.3 12 # yum install ambari-server Loaded plugins: product-id, search-disabled-repos, security, subscription-manager Setting up Install Process Package ambari-server-2.5.0.3-7.x86_64 already installed and latest version Nothing to do # ambari-server setup Using python /usr/bin/python Setup ambari-server Traceback (most recent call last): File "/usr/sbin/ambari-server.py", line 40, in from ambari_server.serverUpgrade import upgrade, upgrade_stack, set_current File "/usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py", line 51, in from ambari_server.setupMpacks import replay_mpack_logs File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 42, in from resource_management.libraries.functions.tar_archive import extract_archive, get_archive_root_dir ImportError: cannot import name extract_archive ------- # yum erase ambari-server Loaded plugins: product-id, search-disabled-repos, security, subscription-manager Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package ambari-server.x86_64 0:2.5.0.3-7 will be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================================================ Removing: ambari-server x86_64 2.5.0.3-7 @ambari-2.5.0.3 722 M Transaction Summary ============================================================================================================================================================================================================ Remove 1 Package(s) Installed size: 722 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction ambari-server 0:off 1:off 2:on 3:on 4:on 5:on 6:off Erasing : ambari-server-2.5.0.3-7.x86_64 1/1 warning: erase unlink of /usr/lib/python2.6/site-packages/ambari_server/utils.pyo failed: No such file or directory Verifying : ambari-server-2.5.0.3-7.x86_64 1/1 Removed: ambari-server.x86_64 0:2.5.0.3-7 Complete! # yum clean all Loaded plugins: product-id, search-disabled-repos, security, subscription-manager Cleaning repos: HDP HDP-UTILS ambari bsb-rhel-x86_64-server-6 bsb-rhel-x86_64-server-supplementary-6-bsb bsbpel datadog Cleaning up Everything # yum repolist Loaded plugins: product-id, search-disabled-repos, security, subscription-manager HDP | 2.9 kB 00:00 HDP/primary_db | 61 kB 00:00 HDP-UTILS | 2.9 kB 00:00 HDP-UTILS/primary_db | 27 kB 00:00 ambari | 2.9 kB 00:00 ambari/primary_db | 8.5 kB 00:00 bsb-rhel-x86_64-server-6 | 3.0 kB 00:00 bsb-rhel-x86_64-server-6/primary_db | 58 MB 00:11 bsb-rhel-x86_64-server-supplementary-6-bsb | 2.9 kB 00:00 bsb-rhel-x86_64-server-supplementary-6-bsb/primary_db | 742 kB 00:00 bsbpel | 2.9 kB 00:00 bsbpel/primary_db | 94 kB 00:00 datadog | 2.5 kB 00:00 datadog/primary_db | 165 kB 00:00 repo id repo name status HDP HDP Version - HDP-2.3.4.0 175 HDP-UTILS HDP Utils Version - HDP-UTILS-1.1.0.20 43 ambari ambari-2.5.0.3 12 bsb-rhel-x86_64-server-6 Red Hat Enterprise Linux 6Server - x86_64 19,865 bsb-rhel-x86_64-server-supplementary-6-bsb Red Hat Enterprise Linux 6Server - x86_64 - supplementary packages 786 bsbpel BSB EPEL - 6Server - x86_64 22 datadog datadog 110 repolist: 21,013 [root@hdplabambari ~]# yum install -y ambari-server Loaded plugins: product-id, search-disabled-repos, security, subscription-manager Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package ambari-server.x86_64 0:2.5.0.3-7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================================================ Installing: ambari-server x86_64 2.5.0.3-7 ambari 663 M Transaction Summary ============================================================================================================================================================================================================ Install 1 Package(s) Total download size: 663 M Installed size: 722 M Downloading Packages: ambari-server-2.5.0.3-7.x86_64.rpm 77% [===========================================================- ambari-server-2.5.0.3-7.x86_64.rpm 78% [============================================================ ambari-server-2.5.0.3-7.x86_64.rpm 78% [===========================================================ambari-server-2.5.0.3-7.x86_64.rpm 79% [=================================ambariambari-server-2.5.0.3-7.x86_64.rpm | 663 MB 00:45 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Backing up configs /etc/ambari-server/conf.save -> /etc/ambari-server/conf_15_12_17_09_13.save Installing : ambari-server-2.5.0.3-7.x86_64 1/1 Verifying : ambari-server-2.5.0.3-7.x86_64 1/1 Installed: ambari-server.x86_64 0:2.5.0.3-7 Complete! # ambari-server setup Using python /usr/bin/python Setup ambari-server Traceback (most recent call last): File "/usr/sbin/ambari-server.py", line 36, in from ambari_server.dbConfiguration import DATABASE_NAMES, LINUX_DBMS_KEYS_LIST File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 28, in from ambari_server.serverConfiguration import decrypt_password_for_alias, get_ambari_properties, get_is_secure, \ File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 36, in from ambari_commons.os_utils import run_os_command, search_file, set_file_permissions, parse_log4j_file ImportError: cannot import name parse_log4j_file