SBT console shows error "configuration already specified for module org.apache.spark:spark-core_2.10:1.6.3:com.databrics


#1

I need to add spark core and databricks dependencies to write the contents to Avro format. below is my build.sbt

name :="RandomText"
version :="1.0"
scalaVersion :="2.10.6"
libraryDependencies += “org.apache.spark” % “spark-core_2.10” % “1.6.3” % “com.databricks” % “spark-avro_2.10” % "2.0.1"

I am getting the below error"
"configuration already specified for module org.apache.spark:spark-core_2.10:1.6.3:com.databrics

please help


#2

Add the dependencies like the below way and let me know

libraryDependencies += “org.apache.spark” % “spark-core_2.10” % “1.6.3”
libraryDependencies += “com.databricks” % “spark-avro_2.10” % “2.0.1”


#3

It worked, thanks Sunil