AnsweredAssumed Answered

Spark Streaming getting error in buliding a jar file using sbt package

Question asked by Punith on Nov 29, 2016
Latest reply on Dec 16, 2016 by Punith

hi,

I mentioned the all import statement and build.sbt file but then all so getting error 

 

 

[root@dn2 twitterapp]# sbt package
[info] Loading global plugins from /root/.sbt/0.13/plugins
[info] Set current project to twitter (in build file:/root/twitterapp/)
[info] Updating {file:/root/twitterapp/}twitterapp...
[info] Resolving org.glassfish.jersey.containers#jersey-container-servlet;2.22.2[info] Resolving org.glassfish.jersey.containers#jersey-container-servlet-core;2[info] Resolving com.fasterxml.jackson.module#jackson-module-scala_2.10;2.6.5 ..[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Compiling 1 Scala source to /root/twitterapp/target/scala-2.11/classes...
[error] /root/twitterapp/src/main/scala/Collect.scala:25: not found: value Utils
[error]       Utils.parseCommandLineWithTwitterCredentials(args)
[error]       ^
[error] /root/twitterapp/src/main/scala/Collect.scala:24: recursive value x$1 needs type
[error]     val Array(outputDirectory, Utils.IntParam(numTweetsToCollect),  Utils.IntParam(intervalSecs), Utils.IntParam(partitionsEachInterval)) =
[error]               ^
[error] /root/twitterapp/src/main/scala/Collect.scala:39: not found: value Utils
[error]     val tweetStream = TwitterUtils.createStream(ssc, Utils.getAuth)
[error]                                                      ^
[error] three errors found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 57 s, completed Nov 30, 2016 11:04:05 AM

Outcomes