Spark-2.4.0下载地址:
官方地址:https://archive.apache.org/dist/spark/spark-2.4.2/spark-2.4.2.tgz
编译Spark源码的文档(参考官方文档)
http://spark.apache.org/docs/latest/building-spark.html
编译Spark源码的前置要求
软件 |
Hadoop |
scala |
maven |
JDK |
版本 |
2.6.0-cdh5.7.0 |
2.11.12 |
3.6.1 |
jdk1.8.0_45 |
编译与配置:
1解压Spark源码:
1 2 3 4 5 6 7 |
[hadoop@hadoop001 software]$ ll spark-2.4.2.tgz
-rw-r--r--. 1 hadoop hadoop 16165557 4月 28 04:41 spark-2.4.2.tgz
[hadoop@hadoop001 software]$ tar -zxvf spark-2.4.2.tgz
[hadoop@hadoop001 software]$ cd spark-2.4.2 |
2 修改make-make-distribution.sh中的版本号,避免编译时自己取寻找,此过程比较耗时
make-distribution.sh脚本的Github地址:
https://github.com/apache/spark/blob/master/dev/make-distribution.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |