?
//===IDEA中SBT构建Spark项目===
IDEA先安装scala插件
在C:\Users\admin\.sbt目录下创建文件repositories
[repositories]
localmy-maven-repo: https://maven.aliyun.com/repository/public
//创建项目,选择sbt版本为:1.2.8 ,scala版本为:2.12.10 ,然后静静等待系统下载依赖
build.sbt中添加Spark
libraryDependencies ++= Seq( "org.apache.spark" %% "spark-core" % "2.4.5" )