Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twitter_classifier compilation fails #60

Open
e5c opened this issue Apr 29, 2015 · 1 comment
Open

twitter_classifier compilation fails #60

e5c opened this issue Apr 29, 2015 · 1 comment

Comments

@e5c
Copy link

e5c commented Apr 29, 2015

$ 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
@shwetikakumar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants