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

Jonathan Hurley updated AMBARI-9677:
------------------------------------
    Priority: Blocker  (was: Critical)

> Ranger Prevents HDFS NameNode From Restarting Due To Malformed File Location
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-9677
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9677
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Blocker
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9677.patch
>
>
> When restarting NameNode with Ranger enabled, an exception is thrown because 
> the path to install.properties is malformed. 
> It appears as though the path to {{install.properties}} is parsed from 
> non-structured output and could include a newline. 
> {noformat}
> deployed a cluster with default configs for stack2.2. Added Ranger as a 
> service and enabled plugins. Noticed that Namenode, hiveserver2, webhcat, 
> region server, knox gateway, Hbase master are not started. Please see below 
> the error from Namenode start. Also, here is the cluster where this issue is 
> present: http://172.18.147.189:8080
> Please help figure out the issue..
> Traceback (most recent call last):
> File 
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py",
>  line 225, in <module>
> NameNode().execute()
> File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 208, in execute
> method(env)
> File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 363, in restart
> self.start(env)
> File 
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py",
>  line 73, in start
> setup_ranger_hdfs()
> File 
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py",
>  line 66, 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 101, in write_properties_to_file
> modify_config(file_path, key, valuekey)
> File 
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py",
>  line 113, 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 2 No such file or directory
> {noformat}



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

Reply via email to