ambari更新失败(ambari 2.4到2.6)-hadoop服务将不再启动

gpfsuwkq  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(717)

我刚刚完成了hortonworks数据平台的升级指南:https://docs.hortonworks.com/hdpdocuments/ambari-2.6.0.0/bk_ambari-upgrade/bk_ambari-upgrade.pdf
我完成了第1-4节(ambari升级)中描述的所有步骤。但现在我有个问题,我的服务不能再启动了!

Ambari可以找到所有的主人,但他们不会启动!
e、 g.对于hdfs启动,我收到以下错误消息:

2017-11-13 19:41:11,427 - Unable to load available packages
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 771, in load_available_packages
    self.available_packages_in_repos = pkg_provider.get_available_packages_in_repos(repos)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 85, in get_available_packages_in_repos
    available_packages.extend(self._get_available_packages(repo))
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 146, in _get_available_packages
    return self._lookup_packages(cmd, 'Available Packages')
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 191, in _lookup_packages
    if items[i + 2].find('@') == 0:
IndexError: list index out of range
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_client.py", line 73, in <module>
    HdfsClient().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 930, in restart
    self.install(env)
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_client.py", line 35, in install
    import params
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/params.py", line 25, in <module>
    from params_linux import *
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py", line 391, in <module>
    lzo_packages = get_lzo_packages(stack_version_unformatted)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_lzo_packages.py", line 45, in get_lzo_packages
    lzo_packages += [script_instance.format_package_name("hadooplzo_${stack_version}"),
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 538, in format_package_name
    raise Fail("Cannot match package for regexp name {0}. Available packages: {1}".format(name, self.available_packages_in_repos))
resource_management.core.exceptions.Fail: Cannot match package for regexp name hadooplzo_${stack_version}. Available packages: []

(我认为最重要的部分是信息 resource_management.core.exceptions.Fail: Cannot match package for regexp name hadooplzo_${stack_version}. Available packages: [] 看起来没有可用的版本(包)。。。!
我刚刚看到,在启动服务之前,我还升级了ambari metrics monitor、ambari metrics hadoop sink和metrics collector(这里的手册有点混乱,请参阅步骤4.3.3)!这是个错误吗?
我试着从ambari 2.4升级到ambari 2.6(安装了hdp2.5)!操作系统是centos 7。
但是,我需要重置/降级ambari或升级服务,以便能够再次启动它们!有人能帮忙吗?任何帮助都将不胜感激!谢谢您!

eagi6jfj

eagi6jfj1#

最后,我能够将ambari安装降级到2.4.2版本,就像在开始升级过程之前一样。
要进行降级,必须在相应的节点上执行以下步骤:


# delete the new ambari repo file

rm /etc/yum.repos.d/ambari.repo

# download the old ambari repo file (for me version 2.4.2), as described in ambari installation guide (here for Centos 7)

wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

yum clean all
yum repolist

# check for the correct version (e.g. 2.4.2) of the Ambari repo

# Downgrade all components to this version

yum downgrade ambari-metrics-monitor
yum downgrade ambari-metrics-hadoop-sink
yum downgrade ambari-agent
...

后来我又升级了一次,但是升级到了ambari版本2.5.2.0,现在可以正常工作了。我还可以通过这个ambari版本将hdp安装升级到2.6.3.0版本。
我将跳过ambari 2.6.0,并尝试在以后的版本中升级ambari。

相关问题