huazai0715 发表于 2016-05-04 17:41

通过ambari升级报错

本帖最后由 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版本如图:
报错描述:点击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= 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)
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':

, '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': , '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= 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)
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([])
页: [1]
查看完整版本: 通过ambari升级报错