HADOOP-12638. UnsatisfiedLinkError while checking ISA-L in checknative command. (Kai Sasaki via Colin P. McCabe)

This commit is contained in:
Colin Patrick Mccabe 2015-12-14 13:11:54 -08:00
parent de522d2cd4
commit bc72422981
2 changed files with 8 additions and 5 deletions

View File

@ -540,6 +540,9 @@ Trunk (Unreleased)
HADOOP-12553. [JDK8] Fix javadoc error caused by illegal tag. (aajisaka)
HADOOP-12638. UnsatisfiedLinkError while checking ISA-L in checknative
command. (Kai Sasaki via Colin P. McCabe)
OPTIMIZATIONS
HADOOP-7761. Improve the performance of raw comparisons. (todd)

View File

@ -95,12 +95,12 @@ public class NativeLibraryChecker {
snappyLibraryName = SnappyCodec.getLibraryName();
}
isalDetail = ErasureCodeNative.getLoadingFailureReason();
if (isalDetail != null) {
isalLoaded = false;
} else {
try {
isalDetail = ErasureCodeNative.getLoadingFailureReason();
isalDetail = ErasureCodeNative.getLibraryName();
isalLoaded = true;
} catch (UnsatisfiedLinkError e) {
isalLoaded = false;
}
openSslDetail = OpensslCipher.getLoadingFailureReason();
@ -146,7 +146,7 @@ public class NativeLibraryChecker {
}
if ((!nativeHadoopLoaded) || (Shell.WINDOWS && (!winutilsExists)) ||
(checkAll && !(zlibLoaded && snappyLoaded && lz4Loaded && bzip2Loaded))) {
(checkAll && !(zlibLoaded && snappyLoaded && lz4Loaded && bzip2Loaded && isalLoaded))) {
// return 1 to indicated check failed
ExitUtil.terminate(1);
}