You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Vijay Srinivasaraghavan (JIRA)" <ji...@apache.org> on 2015/12/21 23:38:46 UTC

[jira] [Updated] (AMBARI-14454) File Permission is not applied properly while using fast-hdfs-resource.jar

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

Vijay Srinivasaraghavan updated AMBARI-14454:
---------------------------------------------
    Description: 
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}



  was:
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}


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