mac os x maven编译spark-2.1.0 for hadoop-2.8.0
1.官方文档中要求安装Maven 3.3.9+ 和Java 8 ;
2.执行
export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m"
3.cd spark2.1.0源码根目录下
./build/mvn -Pyarn -Phadoop-2.8 -Dhadoop.version=2.8.0 -Dscala-2.11 -Phive -Phive-thriftserver -DskipTests clean package
4切换到编译完的dev目录下执行下面命令打包
./dev/make-distribution.sh --name custom-spark --tgz -Psparkr -Phadoop-2.8 -Phive -Phive-thriftserver -Pyarn
参考:
http://spark.apache.org/docs/latest/building-spark.html
时间: 2024-10-13 21:57:54