Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

scala error: not found: type StringDeserializer [error] "key.deserializer" -> classOf[StringDeserializer],

scala error: not found: type StringDeserializer [error] "key.deserializer" -> classOf[StringDeserializer],

Contributor

i tried to compile a piece of scala by SBT, I have a build.sbt file like this:

name := "kf_mongodb"

version := "1.0"

scalaVersion := "2.11.1"

val sparkVersion = "2.2.0"

libraryDependencies ++= Seq( "org.apache.spark" %% "spark-core" % sparkVersion,

"org.apache.spark" %% "spark-sql" % sparkVersion,

"org.apache.spark" %% "spark-mllib" % sparkVersion,

"org.apache.spark" %% "spark-streaming" % sparkVersion,

"org.apache.spark" %% "spark-hive" % sparkVersion,

"com.stratio.datasource" % "spark-mongodb_2.11" % "0.12.0"

however, compile error islnot found: type StringDeserializer [error] "key.deserializer" -> classOf[StringDeserializer],

any one have idea what I need to add to my build.sbt or any .jar file need to copy to my project root dir?

Don't have an account?
Coming from Hortonworks? Activate your account here