diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java index 3a981a9ae3f..96ee2018c30 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java @@ -156,7 +156,7 @@ public class Token implements Writable { try { TokenIdentifier id = tokenIdentifiers.next(); tokenKindMap.put(id.getKind(), id.getClass()); - } catch (ServiceConfigurationError e) { + } catch (ServiceConfigurationError | LinkageError e) { // failure to load a token implementation // log at debug and continue. LOG.debug("Failed to load token identifier implementation", e);