Support Questions
Find answers, ask questions, and share your expertise

problem on installing hdp 2.6 using ambari

New Contributor

Hi, im try to install hdp 2.6 using ambari but it fails on the first try

stderr:   /var/lib/ambari-agent/data/errors-1228.txt
2018-05-23 18:42:13,623 - The 'accumulo-client' component did not advertise a version. This may indicate a problem with the component packaging.
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_client.py", line 61, in <module>
    AccumuloClient().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_client.py", line 33, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 811, in install_packages
    name = self.format_package_name(package['name'])
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 546, 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 accumulo_${stack_version}. Available packages: ['ambari-infra-solr', 'ambari-infra-solr-client', 'ambari-logsearch-logfeeder', 'ambari-logsearch-portal', 'ambari-metrics-collector', 'ambari-metrics-common', 'ambari-metrics-grafana', 'ambari-metrics-hadoop-sink', 'ambari-metrics-monitor', 'smartsense-hst', 'ambari-infra-solr', 'ambari-infra-solr-client', 'ambari-logsearch-logfeeder', 'ambari-logsearch-portal', 'ambari-metrics-collector', 'ambari-metrics-common', 'ambari-metrics-grafana', 'ambari-metrics-hadoop-sink', 'ambari-metrics-monitor', 'smartsense-hst', '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', 'snappy-devel']stdout:   /var/lib/ambari-agent/data/output-1228.txt
2018-05-23 18:42:07,364 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=None -> 2.6
2018-05-23 18:42:07,370 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-05-23 18:42:07,372 - Group['hadoop'] {}
2018-05-23 18:42:07,374 - Group['users'] {}
2018-05-23 18:42:07,374 - Group['zeppelin'] {}
2018-05-23 18:42:07,374 - Group['hdfs'] {}
2018-05-23 18:42:07,374 - Group['knox'] {}
2018-05-23 18:42:07,375 - Group['spark'] {}
2018-05-23 18:42:07,375 - Group['livy'] {}
2018-05-23 18:42:07,376 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,377 - User['zeppelin'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'zeppelin', u'hadoop'], 'uid': None}
2018-05-23 18:42:07,379 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs'], 'uid': None}
2018-05-23 18:42:07,380 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,382 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,383 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,384 - User['sqoop'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,386 - User['oozie'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-05-23 18:42:07,387 - User['logsearch'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,388 - User['superset'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,390 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-05-23 18:42:07,391 - User['flume'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,392 - User['knox'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,394 - User['druid'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,395 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,396 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,398 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,399 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,401 - User['accumulo'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,402 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-05-23 18:42:07,403 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,405 - User['mahout'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,406 - User['falcon'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-05-23 18:42:07,407 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,408 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,410 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,411 - User['atlas'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-05-23 18:42:07,412 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-05-23 18:42:07,414 - Execute['/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) || (false)'}
2018-05-23 18:42:07,422 - Skipping Execute['/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'] due to not_if
2018-05-23 18:42:07,423 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2018-05-23 18:42:07,425 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-05-23 18:42:07,429 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-05-23 18:42:07,431 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
2018-05-23 18:42:07,444 - call returned (0, '1007')
2018-05-23 18:42:07,444 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1007'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2018-05-23 18:42:07,452 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1007'] due to not_if
2018-05-23 18:42:07,452 - Group['hdfs'] {}
2018-05-23 18:42:07,452 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', u'hdfs']}
2018-05-23 18:42:07,453 - FS Type: 
2018-05-23 18:42:07,453 - Directory['/etc/hadoop'] {'mode': 0755}
2018-05-23 18:42:07,454 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2018-05-23 18:42:07,478 - Repository['HDP-2.6-repo-2'] {'append_to_file': False, 'base_url': 'file:///data01/hdp-ambari/ambari/centos7/2.6.1.0-143/', '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-2', 'mirror_list': ''}
2018-05-23 18:42:07,488 - File['/etc/yum.repos.d/ambari-hdp-2.repo'] {'content': InlineTemplate(...)}
2018-05-23 18:42:07,489 - Writing File['/etc/yum.repos.d/ambari-hdp-2.repo'] because it doesn't exist
2018-05-23 18:42:07,491 - Repository['HDP-UTILS-1.1.0.21-repo-2'] {'append_to_file': True, 'base_url': 'file:///data01/hdp-ambari/HDP-UTILS-1.1.0.22/', '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-2', 'mirror_list': ''}
2018-05-23 18:42:07,496 - File['/etc/yum.repos.d/ambari-hdp-2.repo'] {'content': '[HDP-2.6-repo-2]\nname=HDP-2.6-repo-2\nbaseurl=file:///data01/hdp-ambari/ambari/centos7/2.6.1.0-143/\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.21-repo-2]\nname=HDP-UTILS-1.1.0.21-repo-2\nbaseurl=file:///data01/hdp-ambari/HDP-UTILS-1.1.0.22/\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-05-23 18:42:07,497 - Writing File['/etc/yum.repos.d/ambari-hdp-2.repo'] because contents don't match
2018-05-23 18:42:07,498 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-05-23 18:42:07,777 - Skipping installation of existing package unzip
2018-05-23 18:42:07,778 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-05-23 18:42:07,912 - Skipping installation of existing package curl
2018-05-23 18:42:07,913 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-05-23 18:42:08,026 - Skipping installation of existing package hdp-select
2018-05-23 18:42:08,162 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}
2018-05-23 18:42:08,539 - call returned (1, 'Traceback (most recent call last):\n  File "/usr/bin/hdp-select", line 446, in <module>\n    printVersions()\n  File "/usr/bin/hdp-select", line 286, in printVersions\n    for f in os.listdir(root):\nOSError: [Errno 2] No such file or directory: \'/usr/hdp\'')
2018-05-23 18:42:08,946 - Command repositories: HDP-2.6-repo-2, HDP-UTILS-1.1.0.21-repo-2
2018-05-23 18:42:08,946 - Applicable repositories: HDP-2.6-repo-2, HDP-UTILS-1.1.0.21-repo-2
2018-05-23 18:42:08,948 - Looking for matching packages in the following repositories: HDP-2.6-repo-2, HDP-UTILS-1.1.0.21-repo-2
2018-05-23 18:42:12,155 - Adding fallback repositories: HDP-UTILS-1.1.0.22
2018-05-23 18:42:13,261 - No package found for accumulo_${stack_version}(accumulo_(\d|_)+$)
2018-05-23 18:42:13,389 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}
2018-05-23 18:42:13,623 - call returned (1, 'Traceback (most recent call last):\n  File "/usr/bin/hdp-select", line 446, in <module>\n    printVersions()\n  File "/usr/bin/hdp-select", line 286, in printVersions\n    for f in os.listdir(root):\nOSError: [Errno 2] No such file or directory: \'/usr/hdp\'')
2018-05-23 18:42:13,623 - The 'accumulo-client' component did not advertise a version. This may indicate a problem with the component packaging.

Command failed after 1 tries

what confuses me is, ambari insist to make new ambari.repo files while the repo seems pretty fine.

1 REPLY 1