You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by jl...@apache.org on 2014/09/26 21:52:18 UTC
git commit: HADOOP-11048. user/custom LogManager fails to load if the
client classloader is enabled. Contributed by Sangjin Lee (cherry picked from
commit f154ebe8c44e41edc443198a14e0491604cc613f)
Repository: hadoop
Updated Branches:
refs/heads/branch-2 6f5d555ad -> 50a5227da
HADOOP-11048. user/custom LogManager fails to load if the client classloader is enabled. Contributed by Sangjin Lee
(cherry picked from commit f154ebe8c44e41edc443198a14e0491604cc613f)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/50a5227d
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/50a5227d
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/50a5227d
Branch: refs/heads/branch-2
Commit: 50a5227dad4afb16c7bc7f92dc52732155ed0093
Parents: 6f5d555
Author: Jason Lowe <jl...@apache.org>
Authored: Fri Sep 26 19:49:23 2014 +0000
Committer: Jason Lowe <jl...@apache.org>
Committed: Fri Sep 26 19:51:18 2014 +0000
----------------------------------------------------------------------
hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++
.../src/main/java/org/apache/hadoop/util/RunJar.java | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/50a5227d/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 8c6cf16..9f3cb19 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -535,6 +535,9 @@ Release 2.6.0 - UNRELEASED
HADOOP-11064. UnsatisifedLinkError with hadoop 2.4 JARs on hadoop-2.6 due to
NativeCRC32 method changes. (cnauroth)
+ HADOOP-11048. user/custom LogManager fails to load if the client
+ classloader is enabled (Sangjin Lee via jlowe)
+
Release 2.5.1 - 2014-09-05
INCOMPATIBLE CHANGES
http://git-wip-us.apache.org/repos/asf/hadoop/blob/50a5227d/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
----------------------------------------------------------------------
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 75b43b6..4b26b76 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
@@ -176,7 +176,7 @@ public class RunJar {
}
mainClassName = mainClassName.replaceAll("/", ".");
- File tmpDir = new File(new Configuration().get("hadoop.tmp.dir"));
+ File tmpDir = new File(System.getProperty("java.io.tmpdir"));
ensureDirectory(tmpDir);
final File workDir;
@@ -185,7 +185,7 @@ public class RunJar {
} 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 "
+ System.err.println("Error creating temp dir in java.io.tmpdir "
+ tmpDir + " due to " + ioe.getMessage());
System.exit(-1);
return;