Hortonworks® bundles the snappy compression library to
allow MapReduce to manage large volumes of data more quickly.
Procedure
- To verify that the library loads correctly, test the code
using: ./hbase org.apache.hadoop.hbase.util.CompressionTest
file:///tmp/test.txt snappy For example:
- 13/07/22 12:57:51 WARN snappy.LoadSnappy: Snappy native
library is available
- 13/07/22 12:57:51 INFO snappy.LoadSnappy: Snappy native
library loaded
- If Snappy isn't functioning, install it. Complete the following
steps on all nodes in your cluster.
- From a terminal window, type the following for RedHat Linux®, CentOS, or Oracle Linux:
yum install snappy snappy-devel
- Make the Snappy libraries available to Hadoop by typing
this command:
ln -sf /usr/lib64/libsnappy.so /usr/lib/hadoop/lib/native/