spark sbt compile error libraryDependencies

后端 未结 3 1926
无人及你
无人及你 2021-01-25 00:18

1.2.0-bin-hadoop2.4 and my Scala version is 2.11.7. I am getting an error so I can\'t use sbt.

~/sparksample$ sbt

3条回答
  •  悲哀的现实
    2021-01-25 00:24

    There exists no spark-core_2.11.7 jar file. You have to get rid of the maintenance version number .7 in the spark dependencies because spark-core_2.11 exists. All Scala versions with version 2.11 should be compatible.

    Update

    A minimal sbt file could look like

    name := "Simple Project"
    
    version := "1.0"
    
    scalaVersion := "2.11.7"
    
    libraryDependencies += "org.apache.spark" %% "spark-core" % "1.5.1"
    

提交回复
热议问题