[
https://issues.apache.org/jira/browse/AMBARI-14454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15071140#comment-15071140
]
Hudson commented on AMBARI-14454:
---------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #4091 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/4091/])
AMBARI-14454. File Permission is not applied properly while using (aonishuk:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9857429d44f3292b4f12ede03b513cfb4ac17472])
*
contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Resource.java
*
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar
> 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
> Assignee: Andrew Onischuk
> Fix For: 2.3.0
>
> Attachments: AMBARI-14454.patch
>
>
> 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.
> {code}
> {"target": "/apps/hive/warehouse", "dfs_type": "HCFS", "action": "create",
> "mode": "777", "owner": "hive", "type": "directory"},
> {code}
> 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 below then we are actually getting
> correct permission.
> {code}
> {"target": "/apps/hive/warehouse", "dfs_type": "HCFS", "action": "create",
> "mode": "511", "owner": "hive", "type": "directory"}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)