Compile Spark and Build Spark Package
2016-11-22 18:06
155 查看
Compile Spark and Build Spark Package
Compile Spark and Build Spark PackageDownload Spark source code from git
Configure Maven Path into Enviroment
Compile Spark with Maven
Fix the build error
Build a Runnable Distribution
Download Spark source code from git
http://spark.apache.org/downloads.htmlyum install git # Master development branch git clone git://github.com/apache/spark.git # 1.6 maintenance branch with stability fixes on top of Spark 1.6.1 git clone git://github.com/apache/spark.git -b branch-1.6
Configure Maven Path into Enviroment
export MAVEN_HOME=/app/compiled/spark/build/apache-maven-3.3.9 export PATH=$PATH:$MAVEN_HOME/bin
Compile Spark with Maven
Apache Spark document link http://spark.apache.org/docs/1.6.2/building-spark.htmlIf using build/mvn with no MAVEN_OPTS set, the script will automate this for you.
export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m"`
If you want to read from HDFS
build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package
Fix the build error
To see the full stack trace of the errors, re-run Maven with the -e switchbuild/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package -e
The following issue gone after reboot the machine
[error] Required file not found: sbt-interface.jar [error] See zinc -help for information about locating necessary files
Build a Runnable Distribution
./make-distribution.sh --name 2.4.0 --tgz -Phadoop-2.4
相关文章推荐
- Compile Spark and Build Spark Package
- Howto: Compile and package Linux kernel 3.4.7
- Compile and build specific Hadoop source code branch using Azure VM
- Build or Compile Linphone from Source for iPhone and iPad
- Compile Invalid Package/Package Body,and check the error if any
- Understanding the Flex 4 Spark Component Architecture and how to Build Custom Components with the Flex 4 SDK
- make and build package, copy files to dest dir
- cross-compile env set and build(eg,uImage)
- build, debug, compile and run
- django-spaghetti-and-meatballs 0.2.0 : Python Package Index
- how to build QOCI (for linux and windows)
- How to patch and rebuild an RPM package
- Using Qt to build an Omi App for iOS (and Android)
- Configuring "Cruise Control" with "Maven" and "Subversion" for continuous build environment
- Hadoop: Compile and Run URLCat example code
- How to Compile Linux Kernel from Source to Build Custom Kernel
- [转]项目管理实践【三】每日构建【Daily Build Using CruiseControl.NET and MSBuild】
- Compile、Make和Build的区别
- Creating Release Keys and Signing Builds
- 【pySpark教程】Big Data, Hardware trends, and Spark(二)