You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by tu...@apache.org on 2012/02/22 20:46:52 UTC

svn commit: r1292477 - in /incubator/oozie/trunk: core/src/test/java/org/apache/oozie/test/XTestCase.java release-log.txt

Author: tucu
Date: Wed Feb 22 19:46:52 2012
New Revision: 1292477

URL: http://svn.apache.org/viewvc?rev=1292477&view=rev
Log:
OOZIE-702 XTestCase minicluster fails with Hadoop 1.x (tucu)

Modified:
    incubator/oozie/trunk/core/src/test/java/org/apache/oozie/test/XTestCase.java
    incubator/oozie/trunk/release-log.txt

Modified: incubator/oozie/trunk/core/src/test/java/org/apache/oozie/test/XTestCase.java
URL: http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/test/java/org/apache/oozie/test/XTestCase.java?rev=1292477&r1=1292476&r2=1292477&view=diff
==============================================================================
--- incubator/oozie/trunk/core/src/test/java/org/apache/oozie/test/XTestCase.java (original)
+++ incubator/oozie/trunk/core/src/test/java/org/apache/oozie/test/XTestCase.java Wed Feb 22 19:46:52 2012
@@ -682,12 +682,17 @@ public abstract class XTestCase extends 
             UserGroupInformation.createUserForTesting(getTestUser2(), userGroups);
             UserGroupInformation.createUserForTesting(getTestUser3(), new String[] { "users" } );
 
+            conf.set("hadoop.tmp.dir", "/tmp/minicluster");
+
             dfsCluster = new MiniDFSCluster(conf, dataNodes, true, null);
             FileSystem fileSystem = dfsCluster.getFileSystem();
             fileSystem.mkdirs(new Path("/tmp"));
+            fileSystem.mkdirs(new Path("/tmp/minicluster/mapred"));
             fileSystem.mkdirs(new Path("/user"));
             fileSystem.mkdirs(new Path("/hadoop/mapred/system"));
             fileSystem.setPermission(new Path("/tmp"), FsPermission.valueOf("-rwxrwxrwx"));
+            fileSystem.setPermission(new Path("/tmp/minicluster"), FsPermission.valueOf("-rwxrwxrwx"));
+            fileSystem.setPermission(new Path("/tmp/minicluster/mapred"), FsPermission.valueOf("-rwxrwxrwx"));
             fileSystem.setPermission(new Path("/user"), FsPermission.valueOf("-rwxrwxrwx"));
             fileSystem.setPermission(new Path("/hadoop/mapred/system"), FsPermission.valueOf("-rwx------"));
             String nnURI = fileSystem.getUri().toString();

Modified: incubator/oozie/trunk/release-log.txt
URL: http://svn.apache.org/viewvc/incubator/oozie/trunk/release-log.txt?rev=1292477&r1=1292476&r2=1292477&view=diff
==============================================================================
--- incubator/oozie/trunk/release-log.txt (original)
+++ incubator/oozie/trunk/release-log.txt Wed Feb 22 19:46:52 2012
@@ -1,5 +1,6 @@
 -- Oozie 3.2.0 release
 
+OOZIE-702 XTestCase minicluster fails with Hadoop 1.x (tucu)
 OOZIE-700 update hadooplibs versions (tucu)
 OOZIE-698 Make sharelib components version dependency configurable (tucu)
 OOZIE-696 scope of oozie-hadoop-test artifact is wrong (tucu)