Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 05755200B5E for ; Wed, 10 Aug 2016 18:59:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 03338160A8F; Wed, 10 Aug 2016 16:59:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4777B160AA4 for ; Wed, 10 Aug 2016 18:59:19 +0200 (CEST) Received: (qmail 41203 invoked by uid 500); 10 Aug 2016 16:59:18 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 41185 invoked by uid 99); 10 Aug 2016 16:59:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2016 16:59:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 10AEFE0F85; Wed, 10 Aug 2016 16:59:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cnauroth@apache.org To: common-commits@hadoop.apache.org Date: Wed, 10 Aug 2016 16:59:19 -0000 Message-Id: <1dda2cc477034e8580a53186ffab93ed@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] hadoop git commit: HADOOP-13476. CredentialProviderFactory fails at class loading from libhdfs (JNI). Contributed by Aaron Fabbri. archived-at: Wed, 10 Aug 2016 16:59:20 -0000 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 Authored: Wed Aug 10 09:54:31 2016 -0700 Committer: Chris Nauroth 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 serviceLoader = - ServiceLoader.load(CredentialProviderFactory.class); + ServiceLoader.load(CredentialProviderFactory.class, + CredentialProviderFactory.class.getClassLoader()); public static List 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