spark编译

安装jdk1.8

 

vi pom.xml

CDH版本编译添加:

pom.xml
< repositories >
   < repository >
     < id >central</ id >
     <!-- This should be at top, it makes maven try the central repo first and then others and hence faster dep resolution -->
     < name >Maven Repository</ name >
     < releases >
       < enabled >true</ enabled >
     </ releases >
     < snapshots >
       < enabled >false</ enabled >
     </ snapshots >
   </ repository >
   < repository >
     < id >cloudera</ id >
   </ repository >
</ repositories >
< pluginRepositories >
   < pluginRepository >
     < id >central</ id >
     < releases >
       < enabled >true</ enabled >
     </ releases >
     < snapshots >
       < enabled >false</ enabled >
     </ snapshots >
   </ pluginRepository >
</ pluginRepositories >
< dependencies >

 

 

 

 

./dev/make-distribution.sh (自定义版本)

 

VERSION=2.3.1

#VERSION=$("$MVN" help:evaluate -Dexpression=project.version $@ 2>/dev/null | grep -v "INFO" | tail -n 1)

#SCALA_VERSION=$("$MVN" help:evaluate -Dexpression=scala.binary.version $@ 2>/dev/null\

 #   | grep -v "INFO"\

  #  | tail -n 1)

SCALA_VERSION=2.11

SPARK_HADOOP_VERSION=2.6.0

#SPARK_HADOOP_VERSION=$("$MVN" help:evaluate -Dexpression=hadoop.version $@ 2>/dev/null\

#    | grep -v "INFO"\

#    | tail -n 1)

SPARK_HIVE=1

#SPARK_HIVE=$("$MVN" help:evaluate -Dexpression=project.activeProfiles -pl sql/hive $@ 2>/dev/null\

 #   | grep -v "INFO"\

#    | fgrep --count "<id>hive</id>";\

    # Reset exit status to 0, otherwise the script stops here if the last grep finds nothing\

    # because we use "set -o pipefail"

 #   echo -n)

 

 

 

执行编译命令:

./dev/make-distribution.sh --name 2.6.0-cdh5.10.0 --tgz  -Pyarn -Phadoop-2.6  -Dhadoop.version=2.6.0-cdh5.10.0 -Phive -Phive-thriftserver -DskipTests

 

转载于:https://www.cnblogs.com/moonypog/p/10251018.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值