GELOG / docker-ubuntu-hbase

Dockerfile for running HBase on Ubuntu
Apache License 2.0
7 stars 5 forks source link

Install hadoop-native libraries #2

Open davidonlaptop opened 9 years ago

davidonlaptop commented 9 years ago

Error message

This warning occurs when using Hbase:

15/08/19 21:15:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable`

Impact

The HBase operation will be slower.

bukkasamudram commented 9 years ago

Hi davidoonlaptop, The above error tells us Hadoop native libraries are not available in HBase context. You could probably confirm this by running below command. This command will show many false statements.

$ /usr/bin/hbase --config /etc/alternatives/hbase-conf/ org.apache.hadoop.util.NativeLibraryChecker

To solve the issue permanently gently export LD_LIBRARY_PATH environment variable in hbase-env.sh. meanwhile you can confirm this by providing LD_LIBRARY_PATH in previous command.

$ LD_LIBRARY_PATH=/usr/lib/hadoop/lib/native/ /usr/bin/hbase --config /etc/alternatives/hbase-conf/ org.apache.hadoop.util.NativeLibraryChecker