1

安装 App 时间线服务器时出错。请找出以下错误。

标准错误:

回溯(最近一次通话最后):

文件“/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/application_timeline_server.py”,第 89 行,在

ApplicationTimelineServer().execute()

文件“/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py”,第 375 行,在执行

方法(环境)

文件“/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/application_timeline_server.py”,第 38 行,安装

self.install_packages(env)

install_packages 中的文件“/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py”,第 811 行

name = self.format_package_name(package['name'])

文件“/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py”,第 546 行,格式为 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:无法匹配正则表达式名称 hadoop_${stack_version}-yarn 的包。可用包:['accumulo'、'accumulo-conf-standalone'、'accumulo-source'、'accumulo_2_6_5_0_292'、'accumulo_2_6_5_0_292-conf-standalone'、'accumulo_2_6_5_0_292-source'、'atlas-metadata'、'atlas-metadata -falcon-plugin','atlas-metadata-hive-plugin','atlas-metadata-sqoop-plugin','atlas-metadata-storm-plugin','atlas-metadata_2_6_5_0_292','atlas-metadata_2_6_5_0_292-falcon-plugin ','atlas-metadata_2_6_5_0_292-hive-plugin','atlas-metadata_2_6_5_0_292-sqoop-plugin','atlas-metadata_2_6_5_0_292-storm-plugin','bigtop-tomcat','datafu','datafu_2_6_5_0_292','druid', '

标准输出:

2019-02-28 19:11:15,211 - 堆栈功能版本信息:集群堆栈 = 2.6,命令堆栈 = 无,命令版本 = 无 - > 2.6

2019-02-28 19:11:15,216 - 使用 hadoop conf 目录:/usr/hdp/current/hadoop-client/conf

2019-02-28 19:11:15,217 - 组 ['hdfs'] {}

2019-02-28 19:11:15,219 - 组 ['hadoop'] {}

2019-02-28 19:11:15,219 - 组 ['users'] {}

2019-02-28 19:11:15,219 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}

2019-02-28 19:11:15,358 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}

2019-02-28 19:11:15,368 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None }

2019-02-28 19:11:15,379 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs'], 'uid': None}

2019-02-28 19:11:15,391 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}

2019-02-28 19:11:15,402 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}

2019-02-28 19:11:15,413 - 文件 ['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}

2019-02-28 19:11:15,415 - 执行['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (错误的)'}

2019-02-28 19:11:15,430 - 跳过执行['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home /ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] 由于 not_if

2019-02-28 19:11:15,431 - 组 ['hdfs'] {}

2019-02-28 19:11:15,431 - 用户 ['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', u'hdfs']}

2019-02-28 19:11:15,442 - FS 类型:

2019-02-28 19:11:15,442 - 目录 ['/etc/hadoop'] {'mode': 0755}

2019-02-28 19:11:15,456 - 文件 ['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs','组':'hadoop'}

2019-02-28 19:11:15,457 - 目录 ['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777 }

2019-02-28 19:11:15,474 - 存储库 ['HDP-2.6-repo-51'] {'append_to_file': False, 'base_url': ' http://10.66.72.201/HDP/centos7/2.6.5.0 -292 ', 'action': ['create'], 'components': [u'HDP', 'main'], 'repo_template': '[{ {repo_id}}]\nname={ {repo_id}}\ n{% if mirror_list %}mirrorlist={ {mirror_list}}{% else %}baseurl={ {base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name' :'ambari-hdp-51','mirror_list':无}

2019-02-28 19:11:15,482 - 文件 ['/etc/yum.repos.d/ambari-hdp-51.repo'] {'content': '[HDP-2.6-repo-51]\nname= HDP-2.6-repo-51\nbaseurl= http://10.66.72.201/HDP/centos7/2.6.5.0-292 \n\npath=/\nenabled=1\ngpgcheck=0'}

2019-02-28 19:11:15,483 - 写入文件 ['/etc/yum.repos.d/ambari-hdp-51.repo'] 因为内容不匹配

2019-02-28 19:11:15,483 - 存储库 ['HDP-UTILS-1.1.0.21-repo-51'] {'append_to_file': True, 'base_url': ' http://10.66.72.201/HDP-UTILS ', 'action': ['create'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '[{ {repo_id}}]\nname={ {repo_id}}\ n{% if mirror_list %}mirrorlist={ {mirror_list}}{% else %}baseurl={ {base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name' :'ambari-hdp-51','mirror_list':无}

2019-02-28 19:11:15,487 - 文件 ['/etc/yum.repos.d/ambari-hdp-51.repo'] {'content': '[HDP-2.6-repo-51]\nname= HDP-2.6-repo-51\nbaseurl= http://10.66.72.201/HDP/centos7/2.6.5.0-292 \n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1. 0.21-repo-51]\nname=HDP-UTILS-1.1.0.21-repo-51\nbaseurl= http://10.66.72.201/HDP-UTILS \n\npath=/\nenabled=1\ngpgcheck=0'}

2019-02-28 19:11:15,487 - 写入文件 ['/etc/yum.repos.d/ambari-hdp-51.repo'] 因为内容不匹配

2019-02-28 19:11:15,491 - 包 ['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}

2019-02-28 19:11:15,840 - 跳过安装现有软件包解压缩

2019-02-28 19:11:15,841 - 包 ['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}

2019-02-28 19:11:15,860 - 跳过现有包 curl 的安装

2019-02-28 19:11:15,860 - 包 ['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}

2019-02-28 19:11:15,877 - 跳过现有软件包 hdp-select 的安装

2019-02-28 19:11:16,194 - 命令存储库:HDP-2.6-repo-51、HDP-UTILS-1.1.0.21-repo-51

2019-02-28 19:11:16,194 - 适用的存储库:HDP-2.6-repo-51、HDP-UTILS-1.1.0.21-repo-51

2019-02-28 19:11:16,196 - 在以下存储库中寻找匹配的包:HDP-2.6-repo-51、HDP-UTILS-1.1.0.21-repo-51

2019-02-28 19:11:19,536 - 添加后备存储库:HDP-UTILS-1.1.0.21-repo-5、HDP-2.6-repo-5

2019-02-28 19:11:22,829 - 没有找到 hadoop_${stack_version}-yarn(hadoop_(\d|_)+-yarn$) 的包

1 次尝试后命令失败

感谢和问候 ,

普拉尚古普塔

4

1 回答 1

1

这可能可以通过这里描述的策略来解决。

hadoop_${stack_version}-yarn作为您的问题包:

yum clean all
yum list installed | grep "hadoop_*-yarn"
yum-complete-transaction 
yum remove hadoop_xxx-yarn

主要解释可以从我提供链接的页面中找到。一些预先存在的或刚刚安装的软件包似乎会导致间歇性问题/不一致。使用上述命令,可以使 yum DB 进入一致状态,并且可以卸载/删除问题包。

必须从错误消息的这一部分中提取问题包的名称:

“resource_management.core.exceptions.Fail:无法匹配正则表达式名称 hadoop_${stack_version}-yarn 的包。”

于 2019-08-07T16:59:01.140 回答