- Install LZO with HomeBrew, LZO is a wonderful compression scheme to use with Hadoop. HomeBrew is prerequisite, visit https://github.com/mxcl/homebrew to see how to install HomeBrew.
brew install lzo
赞
踩
brew install lzo
git clone https://github.com/twitter/hadoop-lzo.git ~/code/hadoop-lzo && cd ~/code/hadoop-lzo
C_INCLUDE_PATH=/usr/local/Cellar/lzo/2.06/include \ LIBRARY_PATH=/usr/local/Cellar/lzo/2.06/lib \ mvn clean test packageWaiting for build complete. If something wrong, refer to https://github.com/twitter/hadoop-lzo for troubleshoting.
export HADOOP_CLASSPATH=$HADOOP_HOME/lib/hadoop-lzo-xxxx.jar export JAVA_LIBRARY_PATH=/path/to/hadoop-lzo-native-libs:/path/to/standard-hadoop-native-libs
JAVA_LIBRARY_PATH=''
See https://github.com/twitter/hadoop-lzo for further instruction if you have any question or leave a comment.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。