-2
我想從下面的鏈接 http://spark.apache.org/docs/latest/quick-start.htmlScalc SBT編譯失敗
遵循代碼但是,當我試圖創建的軟件包是失敗的。我想知道2認爲
- 明顯,它爲什麼失敗
- 爲什麼它顯示階的舊版本,而我提到的2.11
下面是錯誤消息。
[info] Set current project to default-0464ce (in build file:/home/ubuntu/simple_sbt/)
[info] Updating {file:/home/ubuntu/simple_sbt/}default-0464ce...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Done updating.
[info] Compiling 1 Scala source to /home/ubuntu/simple_sbt/target/scala-2.9.1/classes...
[error] /home/ubuntu/simple_sbt/src/main/scala/SimpleApp.scala:1: object apache is not a member of package org
[error] import org.apache.spark.SparkContext
[error] ^
[error] /home/ubuntu/simple_sbt/src/main/scala/SimpleApp.scala:2: object apache is not a member of package org
[error] import org.apache.spark.SparkContext._
[error] ^
[error] two errors found
[error] {file:/home/ubuntu/simple_sbt/}default-0464ce/compile:compile: Compilation failed
[error] Total time: 2 s, completed Aug 30, 2016 3:19:18 AM
'雖然我提到2.11'這是一種模糊,你是如何「提及」的? – pedrofurla
我懷疑你使用的是舊版本。用'sbt sbt-version'檢查它並驗證它是0.13.x – Tim
嗨,按照我在simple.sbt文件中提到的鏈接。 – Amit