Support Questions
Find answers, ask questions, and share your expertise

when installing cluster via Ambari the installation of the Hive metastore fails

when installing cluster via Ambari the installation of the Hive metastore fails

Explorer

Below is the error thrown. Any help on this regard would be much appreciated.

stderr:
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py", line 259, in <module>
    HiveMetastore().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py", line 51, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 567, in install_packages
    retry_count=agent_stack_retry_count)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 54, in action_install
    self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 49, in install_package
    self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 83, in checked_call_with_retries
    return self._call_with_retries(cmd, is_checked=True, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 91, in _call_with_retries
    code, out = func(cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 71, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 93, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 141, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 294, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install hive2_2_5_6_0_40' returned 1. Error Downloading Packages:
  hive2_2_5_6_0_40-jdbc-2.1.0.2.5.6.0-40.el6.noarch: failure: hive2/hive2_2_5_6_0_40-jdbc-2.1.0.2.5.6.0-40.el6.noarch.rpm from HDP-2.5: [Errno 256] No more mirrors to try.
  hive2_2_5_6_0_40-2.1.0.2.5.6.0-40.el6.noarch: failure: hive2/hive2_2_5_6_0_40-2.1.0.2.5.6.0-40.el6.noarch.rpm from HDP-2.5: [Errno 256] No more mirrors to try. 
  tez_hive2_2_5_6_0_40-0.8.4.2.5.6.0-40.el6.noarch: failure: tez_hive2/tez_hive2_2_5_6_0_40-0.8.4.2.5.6.0-40.el6.noarch.rpm from HDP-2.5: [Errno 256] No more mirrors to try.
1 REPLY 1

Re: when installing cluster via Ambari the installation of the Hive metastore fails

Super Mentor

@ajay vembu

As you are getting yum related installation failure:

resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install hive2_2_5_6_0_40' returned 1. 

Error Downloading Packages:  hive2_2_5_6_0_40-jdbc-2.1.0.2.5.6.0-40.el6.noarch: failure: hive2/hive2_2_5_6_0_40-jdbc-2.1.0.2.5.6.0-40.el6.noarch.rpm from HDP-2.5: [Errno 256] No more mirrors to try.

.

1. You should check if you are able to install that package manually or not? (this will help isolating the issue)

/usr/bin/yum -d 0 -e 0 -y install hive2_2_5_6_0_40

2. If above fails even manually then it indicates wither you have N/W issue in connecting to the Repo where the mentioned package is available (OR) The repo is not correct inside "/etc/yum/repos.d/HDP.repo" file (OR) The "repo is either disabled.

So please check the following and share the output of the following command as well.

# ls -lart /etc/yum.repos.d
# yum repolist
# cat /etc/yum.repos.d/HDP.repo
# cat /etc/yum.conf

.