2014-01-20 63 views
2

我在Ubuntu 13.04上安裝Apache Spark時遇到了問題。我使用spark-0.8.1-incubating,並且./sbt/sbt update./sbt/sbt compile都正常工作。但是,當我做了./sbt/sbt assembly我得到以下錯誤:「./sbt/sbt assembly」錯誤「Apache Spark項目的無效命令:assembly」

[info] Set current project to default-289e76 (in build file:/node-insights/server/lib/spark-0.8.1-incubating/sbt/) 
[error] Not a valid command: assembly 
[error] Not a valid project ID: assembly 
[error] Not a valid configuration: assembly 
[error] Not a valid key: assembly 
[error] assembly 
[error]    

我GOOGLE了與此相關的東西,但找不到任何有用。任何指導將不勝感激。

回答

5

current project set to default-289e76消息表明,sbt從星火來源目錄以外的叫:

$ /tmp ./spark-0.8.1-incubating/sbt/sbt assembly 
[info] Loading global plugins from /Users/joshrosen/.dotfiles/.sbt/plugins/project 
[info] Loading global plugins from /Users/joshrosen/.dotfiles/.sbt/plugins 
[info] Set current project to default-d0f036 (in build file:/private/tmp/) 
[error] Not a valid command: assembly 
[error] Not a valid project ID: assembly 
[error] Not a valid configuration: assembly 
[error] Not a valid key: assembly 
[error] assembly 
[error]  ^

運行./sbt/sbt assembly工作從spark-0.8.1-incubating目錄罰款(注意顯示,目前項目已正確設置日誌的輸出):

$ spark-0.8.1-incubating sbt/sbt assembly 
[info] Loading global plugins from /Users/joshrosen/.dotfiles/.sbt/plugins/project 
[info] Loading global plugins from /Users/joshrosen/.dotfiles/.sbt/plugins 
[info] Loading project definition from /private/tmp/spark-0.8.1-incubating/project/project 
[info] Loading project definition from /private/tmp/spark-0.8.1-incubating/project 
[info] Set current project to root (in build file:/private/tmp/spark-0.8.1-incubating/) 
... 
4

您鍵入了「abt」兩次,但不應該是「sbt」? Apache Spark有自己的sbt副本,所以確保你運行的是Spark的版本,以便在其他自定義設置中選取「程序集」插件。

要運行sbt的Spark安裝,請轉到Spark目錄並運行./sbt/sbt assembly

+0

我的錯誤拼寫錯誤:))我在控制檯上正確鍵入它,但是...但是,我使用Spark版本的sbt。 「./sbt/sbt程序集」命令就是那個失敗的程序。 – deepblue

+0

啊我上面看到你是從sbt目錄下運行的。 「./sbt/sbt assembly」似乎不可能啓動sbt shell。 – swartzrock