ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: AMBARI-14454. File Permission is not applied properly while using fast-hdfs-resource.jar (aonishuk)
Date Thu, 24 Dec 2015 13:15:28 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 810d6e82b -> 9857429d4


AMBARI-14454. File Permission is not applied properly while using fast-hdfs-resource.jar (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9857429d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9857429d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9857429d

Branch: refs/heads/trunk
Commit: 9857429d44f3292b4f12ede03b513cfb4ac17472
Parents: 810d6e8
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Thu Dec 24 15:14:18 2015 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Thu Dec 24 15:14:18 2015 +0200

----------------------------------------------------------------------
 .../before-START/files/fast-hdfs-resource.jar   | Bin 19285353 -> 19285461 bytes
 .../ambari/fast_hdfs_resource/Resource.java     |   2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9857429d/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar
index 98a7f66..4544f6b 100644
Binary files a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar
and b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar
differ

http://git-wip-us.apache.org/repos/asf/ambari/blob/9857429d/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Resource.java
----------------------------------------------------------------------
diff --git a/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Resource.java
b/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Resource.java
index 3d2f182..d774ab8 100644
--- a/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Resource.java
+++ b/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Resource.java
@@ -214,7 +214,7 @@ public class Resource {
       FileSystem dfs, Path pathHadoop) throws IOException {
 
     if (resource.getMode() != null) {
-      FsPermission permission = new FsPermission(Short.valueOf(resource.getMode()));
+      FsPermission permission = new FsPermission((short)Integer.parseInt(resource.getMode(),
8));
       dfs.setPermission(pathHadoop, permission);
 
       // Recursive


Mime
View raw message