hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1204372 - /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
Date Mon, 21 Nov 2011 07:06:05 GMT
Author: eli
Date: Mon Nov 21 07:06:05 2011
New Revision: 1204372

URL: http://svn.apache.org/viewvc?rev=1204372&view=rev
Log:
Revert accidental change in previous commit.

Modified:
    hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java

Modified: hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java?rev=1204372&r1=1204371&r2=1204372&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
(original)
+++ hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
Mon Nov 21 07:06:05 2011
@@ -149,18 +149,7 @@ public class RunJar {
     File tmpDir = new File(new Configuration().get("hadoop.tmp.dir"));
     ensureDirectory(tmpDir);
 
-    final File workDir;
-    try { 
-      workDir = File.createTempFile("hadoop-unjar", "", tmpDir);
-    } catch (IOException ioe) {
-      // If user has insufficient perms to write to tmpDir, default  
-      // "Permission denied" message doesn't specify a filename. 
-      System.err.println("Error creating temp dir in hadoop.tmp.dir "
-                         + tmpDir + " due to " + ioe.getMessage());
-      System.exit(-1);
-      return;
-    }
-
+    final File workDir = File.createTempFile("hadoop-unjar", "", tmpDir);
     if (!workDir.delete()) {
       System.err.println("Delete failed for " + workDir);
       System.exit(-1);



Mime
View raw message