spark build问题

http://spark.apache.org/docs/latest/building-spark.html#building-with-buildmvn

mvn-Pyarn-Phadoop-2.4-Dhadoop.version=2.4.0-DskipTestscleanpackage

mvn-e-DargLine=-Xmx1024m-Pyarn-Phadoop-2.4-Dhadoop.version=2.4.0-DskipTestscleanpackage

-e查询具体error

看到错误后再用eclipse配置jvm参数编译:

解决Maven中OutOfMemory错误

mvninstall-Dmaven.test.skip=true

跳过单元测试

进入core目录,删除target目录下的所有文件,因为怕是原来的编译错误造成这里留下残余的文件影响编译成功,然后输入下面命令:

C:\Users\sz165\spark-1.4.1\core>mvninstall-e-X-Pyarn-Phadoop-2.4-Dhadoop.version=2.4.0-Phive-Phive-thriftserver-Dmaven.test.skip=truecleanpackage

相关推荐