Vijay Srinivasaraghavan created AMBARI-14454:
------------------------------------------------

             Summary: File Permission is not applied properly while using 
fast-hdfs-resource.jar
                 Key: AMBARI-14454
                 URL: https://issues.apache.org/jira/browse/AMBARI-14454
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: trunk, 2.2.0
         Environment: Tested with 2.3.ECS stack with ECS as backend file system.
            Reporter: Vijay Srinivasaraghavan


During Hiveserver2 start script, a directory create request is sent using the 
below JSON structcture but the permission request sent from 
fast-hdfs-resource.jar is different from the original permission (777) defined 
in the JSON file. It looks the mode is getting treated as Dec instead of OCT.

https://github.com/apache/ambari/blob/trunk/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Resource.java#L217

To verify, if we change the json to 
{"target": "/apps/hive/warehouse", "dfs_type": "HCFS", "action": "create", 
"mode": "511", "owner": "hive", "type": "directory"}, then we actually get the 
correct permission

{code}
 {"target": "/apps/hive/warehouse", "dfs_type": "HCFS", "action": "create", 
"mode": "777", "owner": "hive", "type": "directory"}, 
{code}



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

Reply via email to