lee_dalizi 2020-06-11 12:48 采纳率: 100%
浏览 279
已结题

ambari HDP安装后 添加hive sqoop的时候本地源出现问题

报错内容如下:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hcat_client.py", line 79, in
HCatClient().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hcat_client.py", line 35, in install
self.install_packages(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 821, in install_packages
retry_count=agent_stack_retry_count)
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in init
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/__init__.py", line 53, in action_install
self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos)
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/yumrpm.py", line 264, in install_package
self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/__init__.py", line 266, in checked_call_with_retries
return self._call_with_retries(cmd, is_checked=True, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/__init__.py", line 283, in _call_with_retries
code, out = func(cmd, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 303, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install hive_2_6_5_0_292' returned 1. One of the configured repositories failed (HDP-2.6-GPL-repo-1),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=HDP-2.6-GPL-repo-1 ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable HDP-2.6-GPL-repo-1
    or
        subscription-manager repos --disable=HDP-2.6-GPL-repo-1

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=HDP-2.6-GPL-repo-1.skip_if_unavailable=true

failure: repodata/repomd.xml from HDP-2.6-GPL-repo-1: [Errno 256] No more mirrors to try.
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"
http://rapids1/rdp265/HDP/centos7/2.6.5.0-292/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to rapids1:80; Connection refused"

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 想用@vueuse 把项目动态改成深色主题,localStorge里面的vueuse-color-scheme一开始就给我改成了dark,不知道什么原因(相关搜索:背景颜色)
  • ¥20 OPENVPN连接问题
  • ¥15 flask实现搜索框访问数据库
  • ¥15 mrk3399刷完安卓11后投屏调试只能显示一个设备
  • ¥100 如何用js写一个游戏云存档
  • ¥15 ansys fluent计算闪退
  • ¥15 有关wireshark抓包的问题
  • ¥15 需要写计算过程,不要写代码,求解答,数据都在图上
  • ¥15 向数据表用newid方式插入GUID问题
  • ¥15 multisim电路设计