gpt4 book ai didi

hadoop - Ambari-Update失败(Ambari 2.4到2.6)-Hadoop服务将不再启动

转载 作者:行者123 更新时间:2023-12-02 20:47:39 26 4
gpt4 key购买 nike

我刚刚完成了有关Hortonworks数据平台的升级指南:
https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-upgrade/bk_ambari-upgrade.pdf

我按照第1-4节(Ambari升级)中所述执行了所有步骤。但是现在我有一个问题,我的服务将无法启动!

enter image description here

Ambari可以找到所有主机,但它们不会启动!

例如。对于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(已安装HDP 2.5)!操作系统是CentOS 7。

但是,我需要重设/降级Ambari或升级服务才能重新启动它们!有人可以帮忙吗?任何帮助,将不胜感激!谢谢!

最佳答案

最终,我能够像开始升级过程之前那样将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。

关于hadoop - Ambari-Update失败(Ambari 2.4到2.6)-Hadoop服务将不再启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47273227/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com