hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1524578 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Context.java
Date Wed, 18 Sep 2013 21:24:35 GMT
Author: brock
Date: Wed Sep 18 21:24:35 2013
New Revision: 1524578

URL: http://svn.apache.org/r1524578
Log:
HIVE-5313 - HIVE-4487 breaks build because 0.20.2 is missing FSPermission(string)

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Context.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Context.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Context.java?rev=1524578&r1=1524577&r2=1524578&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Context.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Context.java Wed Sep 18 21:24:35 2013
@@ -206,7 +206,7 @@ public class Context {
             throw new RuntimeException("Cannot make directory: "
                                        + dirPath.toString());
           } else {
-            FsPermission fsPermission = new FsPermission(scratchDirPermission);
+            FsPermission fsPermission = new FsPermission(Short.parseShort(scratchDirPermission.trim()));
             fs.setPermission(dirPath, fsPermission);
           }
           if (isHDFSCleanup) {



Mime
View raw message