[ 
https://issues.apache.org/jira/browse/AMBARI-9677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324884#comment-14324884
 ] 

Hudson commented on AMBARI-9677:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #1794 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/1794/])
AMBARI-9677 - Ranger Prevents HDFS NameNode From Restarting Due To Malformed 
File Location (jonathanhurley) (jhurley: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=01c35a7fd2b70c3ca08742c0d0b05a7b138429ed)
* 
ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py
* 
ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py
* 
ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/setup_ranger_knox.py
* ambari-server/src/test/python/stacks/2.0.6/configs/ranger-namenode-start.json
* ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
* 
ambari-server/src/main/resources/common-services/RANGER/0.4.0/configuration/ranger-env.xml
* 
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive.py
* 
ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/setup_ranger_storm.py
* 
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py
* 
ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py


> 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