carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] [Created] (CARBONDATA-1919) sbt project with carbondata dependencies got error when compiling
Date Wed, 20 Dec 2017 08:43:00 GMT

             Summary: sbt project with carbondata dependencies got error when compiling
                 Key: CARBONDATA-1919
             Project: CarbonData
          Issue Type: Bug
          Components: build
    Affects Versions: 1.2.0
         Environment: sbt 0.13.15
            Reporter: CHENYANG XU

In my sbt project, I added carbondata-spark2 dependency like below:

libraryDependencies += "org.apache.carbondata" % "carbondata-spark2" % "1.2.0"

Unfortunately error occured during compilation:

[warn] 	Note: Unresolved dependencies path:
[warn] 		org.apache.spark:spark-sql_${scala.binary.version}:${spark.version}
[warn] 		  +- org.apache.carbondata:carbondata-core:1.2.0
[warn] 		  +- org.apache.carbondata:carbondata-processing:1.2.0
[warn] 		  +- org.apache.carbondata:carbondata-hadoop:1.2.0
[warn] 		  +- org.apache.carbondata:carbondata-spark-common:1.2.0
[warn] 		  +- org.apache.carbondata:carbondata-spark2:1.2.0
[warn] 		org.apache.spark:spark-hive-thriftserver_${scala.binary.version}:${spark.version}
[warn] 		  +- org.apache.carbondata:carbondata-spark-common:1.2.0
[warn] 		  +- org.apache.carbondata:carbondata-spark2:1.2.0
[warn] 		org.apache.spark:spark-repl_${scala.binary.version}:${spark.version}
[warn] 		  +- org.apache.carbondata:carbondata-spark2:1.2.0 

[error] sbt.ResolveException: unresolved dependency: org.apache.spark#spark-sql_${scala.binary.version};${spark.version}:
not found
[error] unresolved dependency: org.apache.spark#spark-hive-thriftserver_${scala.binary.version};${spark.version}:
not found
[error] unresolved dependency: org.apache.spark#spark-repl_${scala.binary.version};${spark.version}:
not found

The project has a lot of spark dependencies, and all versions of spark-sql can be found in
my .ivy2 folder and .m2 folder. Also when I remove the carbondata dependency, everything works
fine. An empty sbt project with only carbondata dependency has the same problem, but maven
project can successfully resolve the dependence.

This message was sent by Atlassian JIRA

View raw message