HADOOP-13476. CredentialProviderFactory fails at class loading from libhdfs (JNI). Contributed by Aaron Fabbri.

This commit is contained in:
Chris Nauroth 2016-08-10 09:54:31 -07:00
parent d00d3add9e
commit 4d4fe07c3c
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ public abstract class CredentialProviderFactory {
) throws IOException; ) throws IOException;
private static final ServiceLoader<CredentialProviderFactory> serviceLoader = private static final ServiceLoader<CredentialProviderFactory> serviceLoader =
ServiceLoader.load(CredentialProviderFactory.class); ServiceLoader.load(CredentialProviderFactory.class,
CredentialProviderFactory.class.getClassLoader());
public static List<CredentialProvider> getProviders(Configuration conf public static List<CredentialProvider> getProviders(Configuration conf
) throws IOException { ) throws IOException {