UNRESOLVED DEPENDENCIES error while trying to create jar

UNRESOLVED DEPENDENCIES error while trying to create jar

Asked on January 12, 2019 in Apache-spark.
Add Comment


  • 2 Answer(s)

    Here the dependency defined as

    
    "org.apache.spark" %% "spark-core" % "1.0.2"
    

    In the above code: %% instructs sbt to substitute current scala version to artifact name. Apparently,¬† Without specific jars for 2.10.1, 2.10.2 …¬†spark was build for the whole family of 2.10 scala,

    So we need to redefine:

    
    "org.apache.spark" % "spark-core_2.10" % "1.0.2"
    
    Answered on January 12, 2019.
    Add Comment

    Alternatively try by using below code:

    libraryDependencies ++= Seq(
    "org.apache.spark" %% "spark-core" % "1.1.0",
    "org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016",
    "org.eclipse.jetty.orbit" % "javax.transaction" % "1.1.1.v201105210645",
    "org.eclipse.jetty.orbit" % "javax.mail.glassfish" % "1.4.1.v201005082020"
    
    Answered on January 12, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.