免费注册 查看新帖 |

ChinaUnix.net

  平台 论坛 博客 文库 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 5189 | 回复: 0

[其他] 通过ambari升级报错 [复制链接]

论坛徽章:
10
2015亚冠之全北现代
日期:2015-06-16 09:16:24CU十四周年纪念徽章
日期:2016-08-08 11:20:3915-16赛季CBA联赛之青岛
日期:2016-02-17 09:14:2015-16赛季CBA联赛之北京
日期:2016-02-12 22:23:3215-16赛季CBA联赛之同曦
日期:2016-01-15 11:11:0815-16赛季CBA联赛之广东
日期:2016-01-15 10:46:4215-16赛季CBA联赛之北控
日期:2015-12-19 18:20:002015亚冠之山东鲁能
日期:2015-07-02 14:03:482015亚冠之吉达阿赫利
日期:2015-06-28 14:08:4015-16赛季CBA联赛之天津
日期:2017-04-21 10:37:41
发表于 2016-05-04 17:41 |显示全部楼层
本帖最后由 huazai0715 于 2016-05-04 17:44 编辑

系统版本:Ubuntu 14.04.2 LTS
需求之通过ambari升级hdp版本,目前hdp版本为:HDP-2.3.2.0-2950,需升级到:HDP-2.3.4.0-3485
ambari版本为:Version 2.2.1.1
如图:
hdp版本如图: QQ截图20160504173420.png
报错描述:点击install packages完成后,查看日志报错;
具体日志为:
stderr:
No handlers could be found for logger "root"
2016-05-04 16:35:25,095 - Caught signal 15, will handle it gracefully. Compute the actual version if possible before exiting.
2016-05-04 16:35:25,171 - Package Manager failed to install packages. Error: (4, 'Interrupted system call')
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 376, in install_packages
    skip_repos=[self.REPO_FILE_NAME_PREFIX + "*"] if OSCheck.is_redhat_family() else [])
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 49, 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/apt.py", line 53, in wrapper
    return function_to_decorate(self, name, *args[2:])
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/apt.py", line 81, in install_package
    code, out = self.call_until_not_locked(cmd, sudo=True, env=INSTALL_CMD_ENV, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 69, in call_until_not_locked
    return self.wait_until_not_locked(cmd, is_checked=False, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 80, in wait_until_not_locked
    code, out = func(cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 105, in call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 240, in _call
    ready, _, _ = select.select(read_set, [], [], 1)
error: (4, 'Interrupted system call')
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 497, in <module>
    InstallPackages().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 163, in actionexecute
    raise Fail("Failed to distribute repositories/install packages")
resource_management.core.exceptions.Fail: Failed to distribute repositories/install packages

Python script has been killed due to timeout after waiting 1800 secs
stdout:
2016-05-04 16:05:25,178 - Will install packages for repository version 2.3.4.0-3485
2016-05-04 16:05:25,179 - Repository['HDP-2.3.4.0-3485'] {'append_to_file': False, 'base_url': 'public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.3.4.0', 'action': ['create'], 'components':

[u'HDP', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'HDP-2.3.4.0-3485', 'mirror_list': None}
2016-05-04 16:05:25,184 - File['/tmp/tmpASNes3'] {'content': 'deb public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.3.4.0 HDP main'}
2016-05-04 16:05:25,185 - Writing File['/tmp/tmpASNes3'] because contents don't match
2016-05-04 16:05:25,185 - File['/tmp/tmpMihJog'] {'content': StaticFile('/etc/apt/sources.list.d/HDP-2.3.4.0-3485.list')}
2016-05-04 16:05:25,186 - Writing File['/tmp/tmpMihJog'] because contents don't match
2016-05-04 16:05:25,186 - File['/etc/apt/sources.list.d/HDP-2.3.4.0-3485.list'] {'content': StaticFile('/tmp/tmpASNes3')}
2016-05-04 16:05:25,186 - Writing File['/etc/apt/sources.list.d/HDP-2.3.4.0-3485.list'] because contents don't match
2016-05-04 16:05:25,187 - checked_call['apt-get update -qq -o Dir::Etc::sourcelist=sources.list.d/HDP-2.3.4.0-3485.list -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0'] {'sudo': True,

'quiet': False}
2016-05-04 16:05:27,857 - checked_call returned (0, '')
2016-05-04 16:05:27,859 - Repository['HDP-UTILS-2.3.4.0-3485'] {'append_to_file': True, 'base_url': 'public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu12', 'action': ['create'],

'components': [u'HDP-UTILS', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'HDP-2.3.4.0-3485', 'mirror_list': None}
2016-05-04 16:05:27,862 - File['/tmp/tmpOaZo5_'] {'content': 'deb public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.3.4.0 HDP main\ndeb public-repo-1.hortonworks.com/HDP-UTILS-

1.1.0.20/repos/ubuntu12 HDP-UTILS main'}
2016-05-04 16:05:27,862 - Writing File['/tmp/tmpOaZo5_'] because contents don't match
2016-05-04 16:05:27,862 - File['/tmp/tmpptBpsg'] {'content': StaticFile('/etc/apt/sources.list.d/HDP-2.3.4.0-3485.list')}
2016-05-04 16:05:27,863 - Writing File['/tmp/tmpptBpsg'] because contents don't match
2016-05-04 16:05:27,863 - File['/etc/apt/sources.list.d/HDP-2.3.4.0-3485.list'] {'content': StaticFile('/tmp/tmpOaZo5_')}
2016-05-04 16:05:27,864 - Writing File['/etc/apt/sources.list.d/HDP-2.3.4.0-3485.list'] because contents don't match
2016-05-04 16:05:27,864 - checked_call['apt-get update -qq -o Dir::Etc::sourcelist=sources.list.d/HDP-2.3.4.0-3485.list -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0'] {'sudo': True,

'quiet': False}
2016-05-04 16:05:32,869 - checked_call returned (0, '')
2016-05-04 16:05:32,948 - Package['fuse'] {}
2016-05-04 16:05:33,018 - Skipping installation of existing package fuse
2016-05-04 16:05:33,018 - Package['libfuse2'] {}
2016-05-04 16:05:33,088 - Installing package libfuse2 ('/usr/bin/apt-get -q -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install libfuse2')
2016-05-04 16:06:24,827 - Package['gcc'] {'use_repos': ['base', u'HDP-2.3.4.0-3485'], 'skip_repos': []}
2016-05-04 16:06:24,827 - Temporal sources directory was created: /tmp/tmpCz80fj-ambari-apt-sources-d
2016-05-04 16:06:24,828 - Temporal sources file will be copied: /tmp/tmpCz80fj-ambari-apt-sources-d/HDP-2.3.4.0-3485.list
2016-05-04 16:06:24,828 - Installing package gcc ('/usr/bin/apt-get -q -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install -o Dir::Etc::SourceParts=/tmp/tmpCz80fj-

ambari-apt-sources-d gcc')
2016-05-04 16:06:31,278 - Removing temporal sources file: /tmp/tmpCz80fj-ambari-apt-sources-d/HDP-2.3.4.0-3485.list
2016-05-04 16:06:31,279 - Removing temporal sources directory: /tmp/tmpCz80fj-ambari-apt-sources-d
2016-05-04 16:06:31,280 - Package['rpcbind'] {'use_repos': ['base', u'HDP-2.3.4.0-3485'], 'skip_repos': []}
2016-05-04 16:06:31,280 - Temporal sources directory was created: /tmp/tmpjf25xy-ambari-apt-sources-d
2016-05-04 16:06:31,281 - Temporal sources file will be copied: /tmp/tmpjf25xy-ambari-apt-sources-d/HDP-2.3.4.0-3485.list
2016-05-04 16:06:31,281 - Installing package rpcbind ('/usr/bin/apt-get -q -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install -o Dir::Etc::SourceParts=/tmp/tmpjf25xy-

ambari-apt-sources-d rpcbind')
2016-05-04 16:06:38,397 - Removing temporal sources file: /tmp/tmpjf25xy-ambari-apt-sources-d/HDP-2.3.4.0-3485.list
2016-05-04 16:06:38,398 - Removing temporal sources directory: /tmp/tmpjf25xy-ambari-apt-sources-d
2016-05-04 16:06:38,399 - Package['hadoop-2-3-.*-client'] {'use_repos': ['base', u'HDP-2.3.4.0-3485'], 'skip_repos': []}
2016-05-04 16:06:38,400 - Temporal sources directory was created: /tmp/tmp0_lshU-ambari-apt-sources-d
2016-05-04 16:06:38,400 - Temporal sources file will be copied: /tmp/tmp0_lshU-ambari-apt-sources-d/HDP-2.3.4.0-3485.list
2016-05-04 16:06:38,400 - Installing package hadoop-2-3-.*-client ('/usr/bin/apt-get -q -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install -o

Dir::Etc::SourceParts=/tmp/tmp0_lshU-ambari-apt-sources-d 'hadoop-2-3-.*-client'')
2016-05-04 16:35:25,095 - Caught signal 15, will handle it gracefully. Compute the actual version if possible before exiting.
2016-05-04 16:35:25,095 - Installation of packages failed. Checking if installation was partially complete
2016-05-04 16:35:25,096 - Old versions: ['2.3.2.0-2950']
2016-05-04 16:35:25,171 - New versions: ['2.3.2.0-2950']
2016-05-04 16:35:25,171 - Deltas: set([])
2016-05-04 16:35:25,171 - Package Manager failed to install packages. Error: (4, 'Interrupted system call')
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 376, in install_packages
    skip_repos=[self.REPO_FILE_NAME_PREFIX + "*"] if OSCheck.is_redhat_family() else [])
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 49, 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/apt.py", line 53, in wrapper
    return function_to_decorate(self, name, *args[2:])
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/apt.py", line 81, in install_package
    code, out = self.call_until_not_locked(cmd, sudo=True, env=INSTALL_CMD_ENV, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 69, in call_until_not_locked
    return self.wait_until_not_locked(cmd, is_checked=False, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 80, in wait_until_not_locked
    code, out = func(cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 105, in call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 240, in _call
    ready, _, _ = select.select(read_set, [], [], 1)
error: (4, 'Interrupted system call')
2016-05-04 16:35:25,178 - Installation of packages failed. Checking if installation was partially complete
2016-05-04 16:35:25,178 - Old versions: ['2.3.2.0-2950']
2016-05-04 16:35:25,259 - New versions: ['2.3.2.0-2950']
2016-05-04 16:35:25,259 - Deltas: set([])
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

数据风云,十年变迁
DTCC 第十届中国数据库技术大会已启航!

2019年5月8日~5月10日,由IT168旗下ITPUB企业社区平台主办的第十届中国数据库技术大会(DTCC2019),将在北京隆重召开。大会将邀请百余位行业专家,就热点技术话题进行分享,是广大数据领域从业人士的又一次年度盛会和交流平台。与SACC2018类似,本届大会将采用“3+2”模式:3天传统技术演讲+2天深度主题培训。大会不仅提供超100场的主题演讲,还会提供连续2天的深度课程培训,深化数据领域的项目落地实践方案。
DTCC2019,一场值得期待的数据技术盛会,殷切地希望您报名参与!

活动入口>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP