export JAVA_HOME=/root/jdk1.8.0_121 export SCALA_HOME=/root/scala-2.11.11 export ANT_HOME=/root/apache-ant-1.9.9 export FINDBUGS_HOME=/root/findbugs-3.0.1 export M2_HOME=/root/apache-maven-3.3.9 export PATH=.:$PATH:$JAVA_HOME/bin:$SCALA_HOME/bin:$M2_HOME/bin:$ANT_HOME/bin:$FINDBUGS_HOME/bin export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
yum -y install lzo-devel zlib-devel gcc gcc-c++ autoconf automake libtool openssl-devel fuse-devel cmake
yum -y install build-essential zlib1g-dev pkg-config libssl-dev
yum -y install libprotobuf-dev protobuf-compiler
# tar xf snappy-1.1.1.tar.gz
# cd snappy-1.1.1
# ./configure
# make && make install
查看snappy是否安裝完成node
# ll /usr/local/lib/ | grep snappy