hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cnaur...@apache.org
Subject [2/2] hadoop git commit: HADOOP-13476. CredentialProviderFactory fails at class loading from libhdfs (JNI). Contributed by Aaron Fabbri.
Date Wed, 10 Aug 2016 16:59:19 GMT
HADOOP-13476. CredentialProviderFactory fails at class loading from libhdfs (JNI). Contributed
by Aaron Fabbri.

(cherry picked from commit 4d4fe07c3cdd5c57c455ef91daac3686b753b9be)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f7ac0fd8
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f7ac0fd8
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f7ac0fd8

Branch: refs/heads/branch-2
Commit: f7ac0fd80acb29f1f65a0fc182310fa4a2653a0e
Parents: 447ba47
Author: Chris Nauroth <cnauroth@apache.org>
Authored: Wed Aug 10 09:54:31 2016 -0700
Committer: Chris Nauroth <cnauroth@apache.org>
Committed: Wed Aug 10 09:54:39 2016 -0700

----------------------------------------------------------------------
 .../apache/hadoop/security/alias/CredentialProviderFactory.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f7ac0fd8/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/alias/CredentialProviderFactory.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/alias/CredentialProviderFactory.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/alias/CredentialProviderFactory.java
index 36b4ecb..0c9c21f 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/alias/CredentialProviderFactory.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/alias/CredentialProviderFactory.java
@@ -45,7 +45,8 @@ public abstract class CredentialProviderFactory {
                                              ) throws IOException;
 
   private static final ServiceLoader<CredentialProviderFactory> serviceLoader =
-      ServiceLoader.load(CredentialProviderFactory.class);
+      ServiceLoader.load(CredentialProviderFactory.class,
+          CredentialProviderFactory.class.getClassLoader());
 
   public static List<CredentialProvider> getProviders(Configuration conf
                                                ) throws IOException {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message