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

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 MATLAB图像问题
  • ¥20 树莓派5做人脸情感识别与反馈系统
  • ¥15 selenium 控制 chrome-for-testing 在 Linux 环境下报错 SessionNotCreatedException
  • ¥15 使用pyodbc操作SQL数据库
  • ¥15 MATLAB实现下列
  • ¥30 mininet可视化打不开.mn文件
  • ¥50 C# 全屏打开Edge浏览器
  • ¥80 WEBPACK性能优化
  • ¥30 python拟合回归分析
  • ¥500 metaswitch 6010