无法为hbase加载snappy本机库

57hvy0tb  于 2021-06-02  发布在  Hadoop
关注(0)|答案(0)|浏览(295)

我一直在尝试和阅读不同的博客,但未能得到快速图书馆检查真的。正在使用的操作系统-centos 6.9
java版本和路径

java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

[root@hadoop1 bin]# $JAVA_HOME

-bash: /usr/local/jdk1.8.0_121: is a directory

输出- hadoop checknative -a17/10/26 11:16:13 WARN bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library system-native, will use pure-Java version 17/10/26 11:16:13 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library Native library checking: hadoop: true /usr/local/hadoop-2.7.1/lib/native/libhadoop.so zlib: true /lib64/libz.so.1 snappy: false lz4: true revision:99 bzip2: false openssl: false Cannot load libcrypto.so (libcrypto.so: cannot open shared object file: No such file or directory)! 17/10/26 11:16:13 INFO util.ExitUtil: Exiting with status 1hbase org.apache.hadoop.util.NativeLibraryChecker ```
2017-10-26 10:46:07,878 WARN [main] bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library system-native, will use pure-Java version
2017-10-26 10:46:07,881 INFO [main] zlib.ZlibFactory: Successfully loaded & initialized native-zlib library
Native library checking:
hadoop: true /usr/local/hadoop-2.7.1/lib/native/libhadoop.so
zlib: true /lib64/libz.so.1
snappy: false
lz4: true revision:99
bzip2: false

来自hbase-env.sh的少量语句

export JAVA_HOME="/usr/local/jdk1.8.0_121"

export HBASE_LIBRARY_PATH=/usr/local/hadoop-2.7.1/lib/native/Linux-amd64-64:/usr/local/hadoop-2.7.1/lib/native

(暂时评论,也尝试取消注解)

export LD_LIBRARY_PATH=/usr/local/hbase-1.2.6/lib/native/Linux-amd64-64

export JAVA_LIBRARY_PATH=$JAVA_LIBRARY_PATH:/usr/local/hadoop-2.7.1/lib/native

我在所需路径中拥有所有所需的*.so。
输出- `ps -ef | grep hbase` 检查hbase为库检查的路径。
![](https://i.stack.imgur.com/vRSw6.jpg)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题