0
votes

C:\scala\spark-1.6.1-bin-hadoop2.6\spark-1.6.1-bin-hadoop2.6>sbt assembly

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; su port was removed in 8.0

[info] Set current project to spark-1-6-1-bin-hadoop2-6 (in build file:/C:/scal /spark-1.6.1-bin-hadoop2.6/spark-1.6.1-bin-hadoop2.6/)

[error] Not a valid command: assembly

[error] Not a valid project ID: assembly

[error] Expected ':' (if selecting a configuration)

[error] Not a valid key: assembly

[error] assembly

[error] ^

Tried everything given on web,still unable to sort out this issue,any help/pointers please ...

"./sbt/sbt assembly" errors "Not a valid command: assembly" for Apache Spark project

above solution is also not working...

1
Have you added sbt-assembly to the plugins.sbt file? - Yuval Itzchakov
is this step needed on windows?if yes,please guide me,i hadnt done - Anand
Directory name "spark-1.6.1-bin-hadoop2.6" looks like you have binary distribution of Spark. So possibly you just don't have sbt project file(s) in this directory (check build.sbt) - Vitalii Kotliarenko
yes,i dont have sbt folder here..i cant see build.sbt - Anand
What are you actually trying to do? - Yuval Itzchakov

1 Answers

1
votes

Problem is you have not added sbt-assembly plugin.

In windows, C:\Users\<username>\.sbt\0.13\plugins\plugins.sbt and add

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")

then it will work. Explained here