用于Apache Spark项目的"./sbt/sbt assembly"错误"不是有效的命令:assembly"

dee*_*lue 3 scala sbt apache-spark

我在Ubuntu 13.04上安装Apache Spark时遇到了麻烦.使用im火花0.8.1-孵化,都./sbt/sbt update./sbt/sbt compile正常工作.但是,当我这样做时,./sbt/sbt 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]            
Run Code Online (Sandbox Code Playgroud)

我搜索与此相关的东西,但找不到任何有用的东西.任何指导都将非常感谢.

Jos*_*sen 6

current project set to default-289e76消息表明sbt从Spark源目录外部调用:

$  /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]         ^
Run Code Online (Sandbox Code Playgroud)

./sbt/sbt assemblyspark-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/)
...
Run Code Online (Sandbox Code Playgroud)