【发布时间】:2019-07-23 04:46:34
【问题描述】:
安装应用时间线服务器时出错。请找出以下错误。
标准错误:
Traceback(最近一次调用最后一次):
文件“/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)
文件“/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py”,第 811 行,在 install_packages 中
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', 'druid_2_6_5_0_292','falcon','falcon-doc','falcon_2_6_5_0_292','falcon_2_6_5_0_292-doc','flume','flume-agent','flume_2_6_5_0_292','flume_2_6_5_0_2'hadoop-agent', -client','hadoop-conf-pseudo','hadoop-doc','hadoop-hdfs','hadoop-hdfs-datanode','hadoop-hdfs-fuse','hadoop-hdfs-journalnode','hadoop -hdfs-namenode','hadoop-hdfs-secondarynamenode','hadoop-hdfs-zkfc','hadoop-httpfs','hadoop-httpfs-服务器','hadoop-libhdfs','hadoop-mapreduce','hadoop-mapreduce-historyserver','hadoop-source','hadoop-yarn','hadoop-yarn-nodemanager','hadoop-yarn-proxyserver' , 'hadoop-yarn-resourcemanager', 'hadoop-yarn-timelineserver', 'hadoop_2_6_5_0_292-client', 'hadoop_2_6_5_0_292-conf-pseudo', 'hadoop_2_6_5_0_292-doc', 'hadoop_2_6_5_0_292-hdfs-datanode', 'hadoop_2_2-6保险丝 ' 'hadoop_2_6_5_0_292-HDFS-journalnode', 'hadoop_2_6_5_0_292-HDFS-名称节点', 'hadoop_2_6_5_0_292-HDFS-secondarynamenode', 'hadoop_2_6_5_0_292-HDFS-zkfc', 'hadoop_2_6_5_0_292-httpfs', 'hadoop_2_6_5_0_292-httpfs服务器',' hadoop_2_6_5_0_292-libhdfs', 'hadoop_2_6_5_0_292-MapReduce的historyserver', 'hadoop_2_6_5_0_292源', 'hadoop_2_6_5_0_292纱-节点管理器', 'hadoop_2_6_5_0_292纱-访问代理服务器', 'hadoop_2_6_5_0_292纱-ResourceManager的', 'hadoop_2_6_5_0_292-纱线timelineserver' ,'hbase','hbase-doc','hbase-master','hbase-regionserver','hbase-rest','hbase-thrift','hbase-thrift2','hbase_2_6_5_0_292','h base_2_6_5_0_292-doc','hbase_2_6_5_0_292-master','hbase_2_6_5_0_292-regionserver','hbase_2_6_5_0_292-rest','hbase_2_6_5_0_292-thrift','hbase_2_6_5_0_292-thrift2','hive-hcatahlog-log-'hive服务器'、'hive-jdbc'、'hive-metastore'、'hive-server'、'hive-server2'、'hive-webhcat'、'hive-webhcat-server'、'hive2'、'hive2-jdbc' , 'hive2_2_6_5_0_292', 'hive2_2_6_5_0_292-JDBC', 'hive_2_6_5_0_292', 'hive_2_6_5_0_292-hcatalog', 'hive_2_6_5_0_292-hcatalog服务器', 'hive_2_6_5_0_292-JDBC', 'hive_2_6_5_0_292-metastore', 'hive_2_6_5_0_292 - 服务器',“hive_2_6_5_0_292- server2','hive_2_6_5_0_292-webhcat','hive_2_6_5_0_292-webhcat-server','hue','hue-beeswax','hue-common','hue-hcatalog','hue-oozie','hue-pig' ,'hue-server','kafka','kafka_2_6_5_0_292','knox','knox_2_6_5_0_292','livy','livy2','livy2_2_6_5_0_292','livy_2_6_5_0_292','mahout','mahout-doc' mahout_2_6_5_0_292'、'mahout_2_6_5_0_292-doc'、'oozie'、'oozie-client'、'oozie-common'、'oozie-sharelib'、'oozie-sharelib-d istcp'、'oozie-sharelib-hcatalog'、'oozie-sharelib-hive'、'oozie-sharelib-hive2'、'oozie-sharelib-mapreduce-streaming'、'oozie-sharelib-pig'、'oozie-sharelib- Spark','Oozie-sharelib-sqoop','oozie-webapp','oozie_2_6_5_0_292','oozie_2_6_5_0_292-client','oozie_2_6_5_0_292-common','ozie_2_6_5_0_292-sharelib','oozie_2_6_5_0_292-sharelib-distcp','oozie_2_6_5_0_292- sharelib-hcatalog ' 'oozie_2_6_5_0_292-sharelib蜂巢', 'oozie_2_6_5_0_292-sharelib-hive2', 'oozie_2_6_5_0_292-sharelib-MapReduce的流', 'oozie_2_6_5_0_292-sharelib猪', 'oozie_2_6_5_0_292-sharelib火花',' oozie_2_6_5_0_292- sharelib-sqoop'、'oozie_2_6_5_0_292-webapp'、'phoenix'、'phoenix-queryserver'、'phoenix_2_6_5_0_292'、'phoenix_2_6_5_0_292-queryserver'、'pig'、'pig_2_6_5_0_292'、'ranger-admin'、'ranger-at插件','ranger-hbase-plugin','ranger-hdfs-plugin','ranger-hive-plugin','ranger-kafka-plugin','ranger-kms','ranger-knox-plugin',' ranger-solr-plugin','ranger-storm-plugin','ranger-tagsync','ranger-us ersync'、'ranger-yarn-plugin'、'ranger_2_6_5_0_292-admin'、'ranger_2_6_5_0_292-atlas-plugin'、'ranger_2_6_5_0_292-hbase-plugin'、'ranger_2_6_5_0_292-hive-plugin'、'ranger_2_6_5_0_292-ka-ka' ranger_2_6_5_0_292-公里, 'ranger_2_6_5_0_292-诺克斯-插件', 'ranger_2_6_5_0_292-solr的-插件', 'ranger_2_6_5_0_292-风暴插件', 'ranger_2_6_5_0_292-tagsync', 'ranger_2_6_5_0_292-用户同步', 'SHC', 'shc_2_6_5_0_292','滑块','slider_2_6_5_0_292','spark','spark-history-server','spark-master','spark-python','spark-worker','spark-yarn-shuffle','spark2',' spark2-history-server','spark2-master','spark2-python','spark2-worker','spark2-yarn-shuffle','spark2_2_6_5_0_292','spark2_2_6_5_0_292-history-server','spark2_2_6_5_0_292-master' 'spark2_2_6_5_0_292-蟒蛇', 'spark2_2_6_5_0_292工人', 'spark_2_6_5_0_292', 'spark_2_6_5_0_292历史服务器', 'spark_2_6_5_0_292主', 'spark_2_6_5_0_292-蟒蛇', 'spark_2_6_5_0_292工人', 'spark_llap', 'spark_llap_2_6_5_0_292' , 'sqoop', 'sqoop -metastore','sqoop_2_6_5_0_292','sqoop_2_6_5_0_292-metastore','storm','storm-slider-client','storm_2_6_5_0_292','storm_2_6_5_0_292-slider-client','superset','superset_2_6_5_0_292', 'tez_2_6_5_0_292', 'tez_hive2', 'tez_hive2_2_6_5_0_292', 'zeppelin', 'zeppelin_2_6_5_0_292', 'zookeeper', 'zookeeper-server', 'zookeeper_2_6_5_0_292-server', 'openblas', 'openblade-Rblas', ','openblas-openmp','openblas-openmp64','openblas-openmp64_','openblas-serial64','openblas-serial64_','openblas-static','openblas-threads','openblas-threads64', 'openblas-threads64_'、'snappy'、'snappy-devel'、'openblas'、'openblas-Rblas'、'openblas-devel'、'openblas-openmp'、'openblas-openmp64'、'openblas-openmp64_'、 'openblas-serial64'、'openblas-serial64_'、'openblas-static'、'openblas-threads'、'openblas-threads64'、'openblas-threads64_'、'snappy'、'snappy-devel'、'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-storm-2_plugin'5_6_ 'bigtop-tomcat'、'datafu'、'datafu_2_6_5_0_292'、'druid'、'druid_2_6_5_0_292'、'falcon'、'falcon-doc'、'falcon_2_6_5_0_292'、'falcon_2_6_5_0_292-doc'、'flume'、'flume-agent ','flume_2_6_5_0_292','flume_2_6_5_0_292-agent','hadoop','hadoop-client','hadoop-conf-pseudo','hadoop-doc','hadoop-hdfs','hadoop-hdfs-datanode', 'hadoop-hdfs-fuse'、'hadoop-hdfs-journalnode'、'hadoop-hdfs-namenode'、'hadoop-hdfs-secondarynamenode'、'hadoop-hdfs-zkfc'、'hadoop-httpfs'、'hadoop-httpfs -server','hadoop-libhdfs','hadoop-mapreduce','hadoop-mapreduce-historyserver','hadoop-source','hadoop-yarn','hadoop-yarn-nodemanager',' hadoop-yarn-proxyserver','hadoop-yarn-resourcemanager','hadoop-yarn-timelineserver','hadoop_2_6_5_0_292-client','hadoop_2_6_5_0_292-conf-pseudo','hadoop_2_6_5_0_292-doc','hadoop_2_6_5_0_292-hdfs-datanode' , 'hadoop_2_6_5_0_292-HDFS熔丝', 'hadoop_2_6_5_0_292-HDFS-journalnode', 'hadoop_2_6_5_0_292-HDFS-名称节点', 'hadoop_2_6_5_0_292-HDFS-secondarynamenode', 'hadoop_2_6_5_0_292-HDFS-zkfc', 'hadoop_2_6_5_0_292-httpfs',“hadoop_2_6_5_0_292- httpfs - 服务器 ' 'hadoop_2_6_5_0_292-libhdfs', 'hadoop_2_6_5_0_292-MapReduce的historyserver', 'hadoop_2_6_5_0_292源', 'hadoop_2_6_5_0_292纱-节点管理器', 'hadoop_2_6_5_0_292纱-访问代理服务器', 'hadoop_2_6_5_0_292纱-ResourceManager的',' hadoop_2_6_5_0_292-yarn-timelineserver','hbase','hbase-doc','hbase-master','hbase-regionserver','hbase-rest','hbase-thrift','hbase-thrift2','hbase_2_6_5_0_292' ,'hbase_2_6_5_0_292-doc','hbase_2_6_5_0_292-master','hbase_2_6_5_0_292-regionserver','hbase_2_6_5_0_292-rest','hbase_2_6_5_0_292-thrift','h base_2_6_5_0_292-thrift2'、'hive'、'hive-hcatalog'、'hive-hcatalog-server'、'hive-jdbc'、'hive-metastore'、'hive-server'、'hive-server2'、'hive- webhcat'、'hive-webhcat-server'、'hive2'、'hive2-jdbc'、'hive2_2_6_5_0_292'、'hive2_2_6_5_0_292-jdbc'、'hive_2_6_5_0_292'、'hive_2_6_5_0_292-hcatalog'、'hive_hcatalog-6_server'、'hive_h2_6_6_server hive_2_6_5_0_292-JDBC ' 'hive_2_6_5_0_292-metastore', 'hive_2_6_5_0_292 - 服务器', 'hive_2_6_5_0_292-server2上', 'hive_2_6_5_0_292-webhcat', 'hive_2_6_5_0_292-webhcat服务器', '色调', '色调蜂蜡',' 色调 - common','hue-hcatalog','hue-oozie','hue-pig','hue-server','kafka','kafka_2_6_5_0_292','knox','knox_2_6_5_0_292','livy','livy2' ,'livy2_2_6_5_0_292','livy_2_6_5_0_292','mahout','mahout-doc','mahout_2_6_5_0_292','mahout_2_6_5_0_292-doc','oozie','oozie-client','oozie-common','oozie-share ,'oozie-sharelib-distcp','oozie-sharelib-hcatalog','oozie-sharelib-hive','oozie-sharelib-hive2','oozie-sharelib-mapreduce-streaming','oozie-sharelib-pig' , 'oozie-sharelib-spark', 'oozie-sharelib-sqoop', 'oozie-webapp', 'oozie_2_6_5_0_292', 'oozie_2_6_5_0_292-client', 'oozie_2_6_5_0_292-common', 'oozie_2_6_5_0_292-sharelib', 'oozie-shared-65_cp_0_ ' 'oozie_2_6_5_0_292-sharelib-hcatalog', 'oozie_2_6_5_0_292-sharelib蜂巢', 'oozie_2_6_5_0_292-sharelib-hive2', 'oozie_2_6_5_0_292-sharelib-MapReduce的流', 'oozie_2_6_5_0_292-sharelib猪',' oozie_2_6_5_0_292-sharelib火花', 'oozie_2_6_5_0_292-sharelib-sqoop', 'oozie_2_6_5_0_292-webapp', 'phoenix', 'phoenix-queryserver', 'phoenix_2_6_5_0_292', 'phoenix_2_6_5_0_292-queryserver', 'pig', 'pig_2_6_5_admin', 'ranger-atlas-plugin'、'ranger-hbase-plugin'、'ranger-hdfs-plugin'、'ranger-hive-plugin'、'ranger-kafka-plugin'、'ranger-kms'、'ranger-knox -plugin','ranger-solr-plugin','ranger-storm-plugin','ranger-tagsync','ranger-usersync','ranger-yarn-plugin','ranger_2_6_5_0_292-admin','ranger_2_6_5_0_292-atlas -plugin','ranger_2_6_5_0_292-hbase-plugin','ranger_2_6_ 5_0_292-蜂房插件, 'ranger_2_6_5_0_292-卡夫卡插件', 'ranger_2_6_5_0_292-公里', 'ranger_2_6_5_0_292-诺克斯-插件', 'ranger_2_6_5_0_292-solr的-插件', 'ranger_2_6_5_0_292-风暴插件', 'ranger_2_6_5_0_292-tagsync' ,'ranger_2_6_5_0_292-usersync','shc','shc_2_6_5_0_292','slider','slider_2_6_5_0_292','spark','spark-history-server','spark-master','spark-python','spark-工人','spark-yarn-shuffle','spark2','spark2-history-server','spark2-master','spark2-python','spark2-worker','spark2-yarn-shuffle',' spark2_2_6_5_0_292' , 'spark2_2_6_5_0_292历史服务器', 'spark2_2_6_5_0_292主', 'spark2_2_6_5_0_292-蟒蛇', 'spark2_2_6_5_0_292工人', 'spark_2_6_5_0_292', 'spark_2_6_5_0_292历史服务器', 'spark_2_6_5_0_292主',“spark_2_6_5_0_292- python','spark_2_6_5_0_292-worker','spark_llap','spark_llap_2_6_5_0_292','sqoop','sqoop-metastore','sqoop_2_6_5_0_292','sqoop_2_6_5_0_292-metastore','storm','storm-slider-client'风暴_2_6_5_0_292','风暴_2_6_5_0_292-滑动er-client','superset','superset_2_6_5_0_292','tez','tez_2_6_5_0_292','tez_hive2','tez_hive2_2_6_5_0_292','zeppelin','zeppelin_2_6_5_0_292','50_2_zookeeper_2_6_6服务器']
标准输出:
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':无}
2019-02-28 19:11:15,358 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid':无}
2019-02-28 19:11:15,368 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid ':无}
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':无}
2019-02-28 19:11:15,402 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid':无}
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 - User['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(...), '所有者':'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 '], '组件': [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 次尝试后命令失败
感谢和问候,
普拉尚·古普塔
【问题讨论】:
标签: hadoop hadoop-yarn hortonworks-data-platform ambari hdp