HADOOP-13476. CredentialProviderFactory fails at class loading from libhdfs (JNI). Contributed by Aaron Fabbri.
(cherry picked from commit 4d4fe07c3c
)
This commit is contained in:
parent
447ba47640
commit
f7ac0fd80a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue