ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMBARI-10692) Hdfs Ranger plugin fails to install with non-root agent
Date Thu, 23 Apr 2015 12:25:40 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-10692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Onischuk resolved AMBARI-10692.
--------------------------------------
    Resolution: Fixed

Committed to trunk

> Hdfs Ranger plugin fails to install with non-root agent
> -------------------------------------------------------
>
>                 Key: AMBARI-10692
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10692
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.1.0
>
>
> Namenode fails with the following error:
>     
>     
>     Traceback (most recent call last):
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py",
line 298, in <module>
>         NameNode().execute()
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
>         method(env)
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 377, in restart
>         self.start(env)
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py",
line 72, in start
>         namenode(action="start", rolling_restart=rolling_restart, env=env)
>       File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line
89, in thunk
>         return fn(*args, **kwargs)
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py",
line 38, in namenode
>         setup_ranger_hdfs()
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py",
line 69, in setup_ranger_hdfs
>         write_properties_to_file(file_path, ranger_hdfs_dict)
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py",
line 104, in write_properties_to_file
>         modify_config(file_path, key, value[key])
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py",
line 116, in modify_config
>         for line in fileinput.input(filepath, inplace=1):
>       File "/usr/lib64/python2.6/fileinput.py", line 253, in next
>         line = self.readline()
>       File "/usr/lib64/python2.6/fileinput.py", line 322, in readline
>         os.rename(self._filename, self._backupfilename)
>     OSError: [Errno 13] Permission denied
>     



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message