ambari安装问题-looped symbolic links found while resolving %s" % /usr/hdp/current/ranger-tagsync/co

Posted bigdatayuan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ambari安装问题-looped symbolic links found while resolving %s" % /usr/hdp/current/ranger-tagsync/co相关的知识,希望对你有一定的参考价值。

一、启动服务时,出现若干循环符号链接错误,比如下面是启动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

解决办法,删掉错误的符号链接,建立正确的链接:

cd /usr/hdp/current/ranger-tagsync
ls -la #可以看出conf链接到另一个文件夹,把两个文件夹下的conf都删除。此类问题都可这样解决。
rm -rf conf

二、权限错误: Permission denied,详见下面log信息

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

解决办法,添加执行权限:

cd //usr/hdp/current/ranger-admin/ews/

chmod a+x ranger-admin-services.sh

以上是关于ambari安装问题-looped symbolic links found while resolving %s" % /usr/hdp/current/ranger-tagsync/co的主要内容,如果未能解决你的问题,请参考以下文章

ambari安装问题

Ambari ambari安装

ambari 安装常见问题

HortonWorks HDP 2.6:NameNode 通过 Ambari 安装问题

HDP Ambari 安装失败

ambari安装中常见的问题