mac build hadoop

https://cwiki.apache.org/confluence/display/HAWQ/Build+and+Install
<!-- brew install protobuf protobuf-c Gsasl boost json-c ccache snappy libyaml libevent python cmake lcov apr iproute2mac -->
brew install gcc autoconf automake libtool cmake snappy gzip bzip2 homebrew/versions/protobuf250 zlib openssl
error :run (make) on project hadoop-pipes: An Ant BuildException has occured: exec returned: 1
export OPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2l
export OPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2l/include
cmake hadoop-tools/hadoop-pipes/src/ -DJVM_ARCH_DATA_MODEL=64

git clone https://github.com/apache/hadoop.git
cd hadoop
git checkout branch-2.7.6
mvn package -Pdist,native -DskipTests -Dtar -Dmaven.javadoc.skip=true
cp hadoop-2.7.6-src/hadoop-dist/target/hadoop-2.7.6/lib/native/*.dylib  /opt/c/hadoop/lib/native
spark_home/conf/spark-env.sh
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/c/hadoop/lib/native
hadoop checknative -a
 
 
原文地址:https://www.cnblogs.com/anjunact/p/9270706.html