HDP Ambari integrated Installation tool is really a bit worse than Clouderamanager, not to mention the trouble of installation, even if the software installation package has been successfully installed, it does not mean that it can be used properly, the start of the HDP cluster process will be a lot of errors!
First, when the service is started, there are some cyclic symbolic link errors, such as the following is one of the error messages that occur when you start Ranger:
setup_tagsync(upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/setup_ranger_xml.py", line 515, in setup_tagsync
create_parents = True
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/system.py", line 177, in action_create
raise Fail("Applying %s failed, looped symbolic links found while resolving %s" % (self.resource, path))
resource_management.core.exceptions.Fail: Applying Directory[‘/usr/hdp/current/ranger-tagsync/conf‘] failed, looped symbolic links found while resolving /usr/hdp/current/ranger-tagsync/conf
Workaround, delete the wrong symbolic link and establish the correct link:
cd /usr/hdp/current/ranger-tagsync
unlink conf
ln -s /etc/ranger-tagsync/3.0.0.0-1634/0 conf
Second, permissions error: Permission denied, see the following log information
stderr: /var/lib/ambari-agent/data/errors-919.txt
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/ranger_admin.py", line 236, in <module>
RangerAdmin().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 351, in execute
method(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 968, in restart
self.stop(env, upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/ranger_admin.py", line 61, in stop
Execute(format(‘{params.ranger_stop}‘), environment={‘JAVA_HOME‘: params.java_home}, user=params.unix_user)
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/system.py", line 263, in action_run
returns=self.resource.returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of ‘/usr/hdp/current/ranger-admin/ews/ranger-admin-services.sh stop‘ returned 126. -bash: /usr/hdp/current/ranger-admin/ews/ranger-admin-services.sh: Permission denied
Workaround, add Execute permissions:
chmod a+x ranger-admin-services. SH
Ambari after installing HDP3.0.1, start the service issue record