hadoop 1.0.3增加snappy压缩
转载请标明来源:http://blackwing.iteye.com/blog/1940933
基础环境是ubuntu 10.04 LTS,网上得知hadoop 1.0.3以后集成了snappy,所以相比安装lzo,简便一点。
预备条件:
1. 预先配好环境
sudo apt-get install autoconfsudo apt-get install automakesudo apt-get install libtool
http://code.google.com/p/snappy/downloads/list
./configuremakemake install
<property> <name>hadoop.native.lib</name> <value>true</value></property>
<property> <name>mapred.compress.map.output</name> <value>true</value></property><property> <name>mapred.map.output.compression.codec</name> <value>org.apache.hadoop.io.compress.SnappyCodec</value></property>
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HADOOP_HOME/lib/native/Linux-amd64-64/:/usr/local/lib/