|
@@ -176,7 +176,7 @@ public class RunJar {
|
|
}
|
|
}
|
|
mainClassName = mainClassName.replaceAll("/", ".");
|
|
mainClassName = mainClassName.replaceAll("/", ".");
|
|
|
|
|
|
- File tmpDir = new File(new Configuration().get("hadoop.tmp.dir"));
|
|
|
|
|
|
+ File tmpDir = new File(System.getProperty("java.io.tmpdir"));
|
|
ensureDirectory(tmpDir);
|
|
ensureDirectory(tmpDir);
|
|
|
|
|
|
final File workDir;
|
|
final File workDir;
|
|
@@ -185,7 +185,7 @@ public class RunJar {
|
|
} catch (IOException ioe) {
|
|
} catch (IOException ioe) {
|
|
// If user has insufficient perms to write to tmpDir, default
|
|
// If user has insufficient perms to write to tmpDir, default
|
|
// "Permission denied" message doesn't specify a filename.
|
|
// "Permission denied" message doesn't specify a filename.
|
|
- System.err.println("Error creating temp dir in hadoop.tmp.dir "
|
|
|
|
|
|
+ System.err.println("Error creating temp dir in java.io.tmpdir "
|
|
+ tmpDir + " due to " + ioe.getMessage());
|
|
+ tmpDir + " due to " + ioe.getMessage());
|
|
System.exit(-1);
|
|
System.exit(-1);
|
|
return;
|
|
return;
|