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

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

原文地址:https://www.cnblogs.com/bigdatayuan/p/12275701.html

时间: 2024-10-03 22:55:46

ambari安装问题-looped symbolic links found while resolving %s" % /usr/hdp/current/ranger-tagsync/conf的相关文章

【翻译自mos文章】oracle支持在RDBMS HOME 下的 符号链接( Symbolic Links)吗?

oracle支持在RDBMS HOME 下的 符号链接( Symbolic Links)吗? 參考原文: Does Oracle support Symbolic Links in the RDBMS home? (Doc ID 813116.1) 适用于: Oracle Server - Enterprise Edition - Version 9.2.0.1 to 11.2.0.3 [Release 9.2 to 11.2] Oracle Server - Standard Edition

-bash: /usr/bin/mvn: Too many levels of symbolic links

问题背景: root 用户安装了maven,切换到jenkins 用户可以正常执行mvn 命令,但是jenkins job 构建任务却无法执行mvn命令,报错如下:/bin/sh: 1: mvn: not found 1.root用户安装maven root# mvn -v Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z) Maven home: /usr/share/maven

Too many levels of symbolic links 问题

Too many levels of symbolic links 问题 Posted on 2011-11-30 20:33 张贺 阅读(5826) 评论(0) 编辑 收藏 今天弄了个ZendStudio,放在了user下的某个文件夹下,想把执行程序ZendStudio做个链接到/usr/sbin目录下.于是使用命令: ln -s ./ZendStudio /usr/sbin 可是当执行ZendStudio的时候提示“Too many levels of symbolic links”这个错误

Ambari安装中遇到:CRITICAL:yum.main:

错误 error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed 解决方法: #rm -rf /var/lib/rpm/__db* #rpm --rebuilddb #yum clean all Ambari安装中遇到:CRITICAL:yum.main:,布布扣,bubuko.com

Ambari安装中FQDN设置

FQDN(Fully Qualified Domain Name)完全合格域名/全称域名 安装Ambari时,需要设置FQDN,每个节点都要设置,因为Ambari-agent向Ambari-server发送心跳时,第一次要携带FQDN作为自己的标记.而Ambari-server是通过FQDN识别每个Ambari-agent的:如果FQDN设置错误,Ambari-server与Ambari-agent将无法通信. 设置具体步骤: 1,#vi /etc/sysconfig/network 设置HOS

软链接ln -s以及如何解决其产生“Too many levels of symbolic links ”的错误?

[[email protected] script]$ ls /etc/init.d/hadoop.sh  ls: cannot access /etc/init.d/hadoop.sh: Too many levels of symbolic links [[email protected] script]$ ls /home/hadoop/script/hadoop.sh  /etc/init.d/hadoop.sh  ls: cannot access /etc/init.d/hadoop

ambari安装问题记录:Ambari Agent host cannot reach Ambari Server &#39;localhost:8080&#39;.

在安装完ambari-server并配置之后,选定客户端进行指定安装的时候,发现总是遇到这一错误 Ambari Agent host cannot reach Ambari Server 'localhost:8080'. 我看了一下错误日志发现在从ambari-server传送到客户端的setupAgent.py脚本的main函数中的参数设置老是不对,如下所示: 156 def main(argv=None): 157 scriptDir = os.path.realpath(os.path.

CentOS7 通过Ambari安装Hadoop集群

第一次在cnblogs上发表文章,效果肯定不会好,希望各位多包涵. 编写这个文档的背景是月中的时候,部门老大希望我们能够抽时间学习一下Hadoop大数据方面的技术:给我的学习内容是通过Ambari安装Hadoop集群.通过一周左右的学习和实践,整理出现在这篇安装心得. 安装默认使用Root用户,避免权限问题导致不成功. 使用4台虚拟机构建Ambari-Server.Hadoop集群,分配如下: -       一台虚拟机,作为Ambari-Server: Hostname: ambari.ser

Ambari ambari安装

不同的HDP版本,对ambari的版本也有不同的要求(如下图,来源于hortonwork官网),在安装HDP2.3的过程中,选择的ambari版本为2.2.2.0 安装步骤: 软件包下载; 集群规划: 192.168.15.151   hdp1     (ambari) 192.16815.152    hdp2     (worknode1) 192.16815.153   hdp3     (worknode2) 环境准备: ssh无密码访问: hdp1.命令: cd  ~/.ssh