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] [Updated] (AMBARI-14454) File Permission is not applied properly while using fast-hdfs-resource.jar
Date Thu, 24 Dec 2015 12:59:49 GMT

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

Andrew Onischuk updated AMBARI-14454:
-------------------------------------
    Attachment: AMBARI-14454.patch

> 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
>         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)

Mime
View raw message