From 5760d03c87cf00c9086b1f07a7b57d756ac47aad Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Mon, 21 Nov 2011 07:06:05 +0000 Subject: [PATCH] Revert accidental change in previous commit. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1204372 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/hadoop/util/RunJar.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java index a785cacc34..46993e16aa 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java @@ -149,18 +149,7 @@ public static void main(String[] args) throws Throwable { 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);