Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari server installation failed

Ambari server installation failed

New Contributor

Hi all,

Currently the ambari server installation has failed and I need help to resolve it.

Ambari version : 2.7.3

OS : Ubuntu 16.04

Here is the current problem(s) I am facing

In namenode it has failed where it stated the Hbase Master Install failed ( as shown below)

stderr: /var/lib/ambari-agent/data/errors-222.txt
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HBASE/package/scripts/hbase_master.py", line 170, in <module>
    HbaseMaster().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HBASE/package/scripts/hbase_master.py", line 50, in install
    self.install_packages(env)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 849, in install_packages
    retry_count=agent_stack_retry_count)
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/packaging.py", line 30, in action_install
    self._pkg_manager.install_package(package_name, self.__create_context())
  File "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/apt_manager.py", line 35, in wrapper
    return function_to_decorate(self, name, *args[2:], **kwargs)
  File "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/apt_manager.py", line 265, in install_package
    shell.repository_manager_executor(cmd, self.properties, context, env=self.properties.install_cmd_env)
  File "/usr/lib/ambari-agent/lib/ambari_commons/shell.py", line 753, in repository_manager_executor
    raise RuntimeError(message)
RuntimeError: Failed to execute command '/usr/bin/apt-get -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install hbase-3-0-1-0-187', exited with code '100', message: 'E: Unable to locate package hbase-3-0-1-0-187
'
stdout: /var/lib/ambari-agent/data/output-222.txt
2019-01-23 14:11:27,252 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=None -> 3.1
2019-01-23 14:11:27,264 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2019-01-23 14:11:27,266 - Group['hdfs'] {}
2019-01-23 14:11:27,268 - Group['hadoop'] {}
2019-01-23 14:11:27,268 - Group['users'] {}
2019-01-23 14:11:27,268 - Group['knox'] {}
2019-01-23 14:11:27,269 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-01-23 14:11:27,271 - User['yarn-ats'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-01-23 14:11:27,272 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-01-23 14:11:27,273 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-01-23 14:11:27,275 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'users'], 'uid': None}
2019-01-23 14:11:27,276 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'users'], 'uid': None}
2019-01-23 14:11:27,277 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop'], 'uid': None}
2019-01-23 14:11:27,278 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-01-23 14:11:27,280 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-01-23 14:11:27,281 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2019-01-23 14:11:27,282 - User['knox'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'knox'], 'uid': None}
2019-01-23 14:11:27,283 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-01-23 14:11:27,286 - 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)'}
2019-01-23 14:11:27,292 - 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
2019-01-23 14:11:27,293 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2019-01-23 14:11:27,294 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-01-23 14:11:27,295 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-01-23 14:11:27,296 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
2019-01-23 14:11:27,306 - call returned (0, '1017')
2019-01-23 14:11:27,307 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1017'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2019-01-23 14:11:27,313 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1017'] due to not_if
2019-01-23 14:11:27,314 - Group['hdfs'] {}
2019-01-23 14:11:27,314 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop', u'hdfs']}
2019-01-23 14:11:27,315 - FS Type: HDFS
2019-01-23 14:11:27,315 - Directory['/etc/hadoop'] {'mode': 0755}
2019-01-23 14:11:27,316 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2019-01-23 14:11:27,337 - Repository['HDP-3.1-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP/ubuntu16/3.x/updates/3.1.0.0', 'action': ['prepare'], 'components': [u'HDP', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
2019-01-23 14:11:27,345 - Repository['HDP-3.1-GPL-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-GPL/ubuntu16/3.x/updates/3.1.0.0', 'action': ['prepare'], 'components': [u'HDP-GPL', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
2019-01-23 14:11:27,347 - Repository['HDP-UTILS-1.1.0.22-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu16', 'action': ['prepare'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
2019-01-23 14:11:27,350 - Repository[None] {'action': ['create']}
2019-01-23 14:11:27,353 - File['/tmp/tmpmW23wF'] {'content': 'deb http://public-repo-1.hortonworks.com/HDP/ubuntu16/3.x/updates/3.1.0.0 HDP main\ndeb http://public-repo-1.hortonworks.com/HDP-GPL/ubuntu16/3.x/updates/3.1.0.0 HDP-GPL main\ndeb http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu16 HDP-UTILS main'}
2019-01-23 14:11:27,355 - Writing File['/tmp/tmpmW23wF'] because contents don't match
2019-01-23 14:11:27,355 - File['/tmp/tmp2wh9PE'] {'content': StaticFile('/etc/apt/sources.list.d/ambari-hdp-1.list')}
2019-01-23 14:11:27,356 - Writing File['/tmp/tmp2wh9PE'] because contents don't match
2019-01-23 14:11:27,357 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-01-23 14:11:27,432 - Skipping installation of existing package unzip
2019-01-23 14:11:27,432 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-01-23 14:11:27,468 - Skipping installation of existing package curl
2019-01-23 14:11:27,469 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-01-23 14:11:27,504 - Skipping installation of existing package hdp-select
2019-01-23 14:11:27,513 - The repository with version 3.0.1.0-187 for this command has been marked as resolved. It will be used to report the version of the component which was installed
2019-01-23 14:11:27,856 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=None -> 3.1
2019-01-23 14:11:27,879 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2019-01-23 14:11:27,887 - checked_call['hostid'] {}
2019-01-23 14:11:27,891 - checked_call returned (0, '007f0101')
2019-01-23 14:11:27,906 - Package['hbase-3-0-1-0-187'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2019-01-23 14:11:27,982 - Installing package hbase-3-0-1-0-187 ('/usr/bin/apt-get -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install hbase-3-0-1-0-187')
2019-01-23 14:12:01,500 - The repository with version 3.0.1.0-187 for this command has been marked as resolved. It will be used to report the version of the component which was installed

Command failed after 1 tries

And as for the other datanodes, it has been on warning (yellow coloured) status for all of them and as far I have checked on all of them there have not yet installed any services. ( you can see it on the pictures attached)

I need some advice regarding on these problems.

Thank you

96790-2.png

96789-1.png

Don't have an account?
Coming from Hortonworks? Activate your account here