为了账号安全,请及时绑定邮箱和手机立即绑定

如何使用maven导入sparkjava?

如何使用maven导入sparkjava?

料青山看我应如是 2018-09-27 14:10:26
如何使用maven导入sparkjava
查看完整描述

1 回答

?
MMMHUHU

TA贡献1834条经验 获得超8个赞

pom配置
<properties>
<spark.version>2.1.1</spark.version>
<scala.version>2.11</scala.version>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-streaming_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-mllib_${scala.version}</artifactId>
<version>${spark.version}</version>
</dependency>
</dependencies>



查看完整回答
反对 回复 2018-10-08
  • 1 回答
  • 0 关注
  • 1527 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信