lzo
./configure --enable-shared
make && sudo make install
hadoop-lzo
mvn clean test 失败,虽然/usr/local/lib 已经有了,还是报错,最后经过大神指导
把 usr/local/lib/liblzo2.*复制到/usr/lib下就可以 了
sudo cp liblzo2.* /usr/lib
Running com.hadoop.compression.lzo.TestLzopInputStream
2016-05-16 06:30:26,192 INFO lzo.GPLNativeCodeLoader (GPLNativeCodeLoader.java:<clinit>(52)) - Loaded native gpl library from the embedded binaries
2016-05-16 06:30:26,226 WARN lzo.LzoCompressor (LzoCompressor.java:<clinit>(175)) - java.lang.UnsatisfiedLinkError: Cannot load liblzo2.so.2 (liblzo2.so.2: cannot open shared object file: No such file or directory)!
2016-05-16 06:30:26,227 ERROR lzo.LzoCodec (LzoCodec.java:<clinit>(78)) - Failed to load/initialize native-lzo library
2016-05-16 06:30:26,229 INFO lzo.TestLzopInputStream (TestLzopInputStream.java:runTest(119)) - Comparing file
./configure --enable-shared
make && sudo make install
hadoop-lzo
mvn clean test 失败,虽然/usr/local/lib 已经有了,还是报错,最后经过大神指导
把 usr/local/lib/liblzo2.*复制到/usr/lib下就可以 了
sudo cp liblzo2.* /usr/lib
Running com.hadoop.compression.lzo.TestLzopInputStream
2016-05-16 06:30:26,192 INFO lzo.GPLNativeCodeLoader (GPLNativeCodeLoader.java:<clinit>(52)) - Loaded native gpl library from the embedded binaries
2016-05-16 06:30:26,226 WARN lzo.LzoCompressor (LzoCompressor.java:<clinit>(175)) - java.lang.UnsatisfiedLinkError: Cannot load liblzo2.so.2 (liblzo2.so.2: cannot open shared object file: No such file or directory)!
2016-05-16 06:30:26,227 ERROR lzo.LzoCodec (LzoCodec.java:<clinit>(78)) - Failed to load/initialize native-lzo library
2016-05-16 06:30:26,229 INFO lzo.TestLzopInputStream (TestLzopInputStream.java:runTest(119)) - Comparing file