reference-apps icon indicating copy to clipboard operation
reference-apps copied to clipboard

twitter_classifier compilation fails

Open e5c opened this issue 10 years ago • 1 comments

$ sbt clean assembly
[info] Loading global plugins from /Users/elizachang/.sbt/0.13/plugins
[info] Loading project definition from /Users/elizachang/oss/reference-apps/twitter_classifier/scala/project
[info] Set current project to spark-twitter-lang-classifier (in build file:/Users/elizachang/oss/reference-apps/twitter_classifier/scala/)
[success] Total time: 0 s, completed Apr 29, 2015 3:47:00 PM
[info] Updating {file:/Users/elizachang/oss/reference-apps/twitter_classifier/scala/}scala...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 4 Scala sources to /Users/elizachang/oss/reference-apps/twitter_classifier/scala/target/scala-2.10/classes...
[error] /Users/elizachang/oss/reference-apps/twitter_classifier/scala/src/main/scala/com/databricks/apps/twitter_classifier/ExamineAndTrain.scala:51: value head is not a member of org.apache.spark.sql.Row
[error]     val texts = sqlContext.sql("SELECT text from tweetTable").map(_.head.toString)
[error]                                                                     ^
[error] /Users/elizachang/oss/reference-apps/twitter_classifier/scala/src/main/scala/com/databricks/apps/twitter_classifier/ExamineAndTrain.scala:62: value foreach is not a member of Array[Nothing]
[error]       some_tweets.foreach { t =>
[error]                   ^
[error] two errors found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 14 s, completed Apr 29, 2015 3:47:15 PM

e5c avatar Apr 29 '15 19:04 e5c

Hi, Were you able to resolve this issue? I get the same error. Please let me know. Thanks

shwetikakumar avatar Jul 08 '15 07:07 shwetikakumar