Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-1786

kudu-spark2_2.11 pom.xml is invalid due to reliance on maven profiles

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1.0
    • Fix Version/s: n/a
    • Component/s: spark
    • Labels:
      None
    • Environment:
      OSX 10.12.1

      Description

      I was not able to load kudu-spark2_2.11 using SBT.

      build.sbt :

      scalaVersion := "2.11.8"

      val sparkVersion = "2.0.2"
      val configVersion = "1.3.0"

      libraryDependencies ++= Seq(
      "com.typesafe" % "config" % configVersion,
      "org.apache.spark" % "spark-core_2.11" % sparkVersion,
      "org.apache.spark" % "spark-sql_2.11" % sparkVersion,
      "org.apache.spark" % "spark-mllib_2.11" % sparkVersion,
      "org.twitter4j" % "twitter4j-stream" % "4.0.4"
      )
      // https://mvnrepository.com/artifact/org.apache.kudu/kudu-spark2_2.11
      libraryDependencies += "org.apache.kudu" % "kudu-spark2_2.11" % "1.1.0"

      lazy val defaultSettings = Defaults.coreDefaultSettings ++ Seq(
      resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"
      )`

      This is the output I have :

      Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.scala-sbt#run;0.13.8 ...
      [info] Resolving org.scala-sbt#task-system;0.13.8 ...
      [info] Resolving org.scala-sbt#tasks;0.13.8 ...
      [info] Resolving org.scala-sbt#tracking;0.13.8 ...
      [info] Resolving org.scala-sbt#cache;0.13.8 ...
      [info] Resolving org.scala-sbt#testing;0.13.8 ...
      [info] Resolving org.scala-sbt#test-agent;0.13.8 ...
      [info] Resolving org.scala-sbt#test-interface;1.0 ...
      [info] Resolving org.scala-sbt#main-settings;0.13.8 ...
      [info] Resolving org.scala-sbt#apply-macro;0.13.8 ...
      [info] Resolving org.scala-sbt#command;0.13.8 ...
      [info] Resolving org.scala-sbt#logic;0.13.8 ...
      [info] Resolving org.scala-sbt#precompiled-2_8_2;0.13.8 ...
      [info] Resolving org.scala-sbt#precompiled-2_9_2;0.13.8 ...
      [info] Resolving org.scala-sbt#precompiled-2_9_3;0.13.8 ...
      [trace] Stack trace suppressed: run 'last *:update' for the full output.
      [trace] Stack trace suppressed: run 'last *:ssExtractDependencies' for the full output.
      [error] (*:update) sbt.ResolveException: unresolved dependency: org.apache.kudu#kudu-spark2_2.11;1.1.0: java.text.ParseException: inconsistent module descriptor file found in 'https://repo1.maven.org/maven2/org/apache/kudu/kudu-spark2_2.11/1.1.0/kudu-spark2_2.11-1.1.0.pom': bad module name: expected='kudu-spark2_2.11' found='kudu-spark_2.10';
      [error] (*:ssExtractDependencies) sbt.ResolveException: unresolved dependency: org.apache.kudu#kudu-spark2_2.11;1.1.0: java.text.ParseException: inconsistent module descriptor file found in 'https://repo1.maven.org/maven2/org/apache/kudu/kudu-spark2_2.11/1.1.0/kudu-spark2_2.11-1.1.0.pom': bad module name: expected='kudu-spark2_2.11' found='kudu-spark_2.10';
      [error] Total time: 23 s, completed 5 déc. 2016 17:52:40</pre><br/>See complete log in <a href="/Users/abruneau/Library/Logs/IdeaIC2016.3/sbt.last.log">/Users/abruneau/Library/Logs/IdeaIC2016.3/sbt.last.log</a>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                junhe Jun He
                Reporter:
                abruneau Antonin Bruneau
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: