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 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵