spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Garneau <>
Subject Re: Apache Spark running out of the spark shell
Date Sat, 03 May 2014 18:22:58 GMT
Hey AJ,

As I can see your path when running sbt is:

> $root/spark/spark-examples: sbt/sbt package

You should be within the app's folder that contains the simple.sbt, which is spark-standalone/;

> $root/spark/spark-examples/spark-standalone: sbt/sbt package
> $root/spark/spark-examples/spark-standalone: sbt/sbt run

Don't forget to move the sbt folder within your app's directory.

That being said, I think you can install sbt globally on your system so you'll be able to
run the sbt command everywhere on your PC.
It'll be useful when creating multiple apps.

For example, the way I'm building it from A to Z:
$ git clone
$ cd spark-standalone
-- change the path of spark's home dir
$ sbt package (assuming sbt is installed globally)
$ sbt run (assuming sbt is installed globally)

Hope this helps!

Le 2014-05-03 à 13:38, Ajay Nair <> a écrit :

> Quick question, where should I place your folder. Inside the spark directory.
> My Spark directory is in /root/spark
> So currently I tried pulling your github code in /root/spark/spark-examples
> and modified my home spark directory in the scala code.
> I copied the sbt folder within the spark-examples folder. But when I try
> running this command
> $root/spark/spark-examples: sbt/sbt package
> awk: cmd. line:1: fatal: cannot open file `./project/' for
> reading (No such file or directory)
> Launching sbt from sbt/sbt-launch-.jar
> Error: Invalid or corrupt jarfile sbt/sbt-launch-.jar
> However the sbt package runs fines (Expectedly) when i run it from
> /root/spark folder.
> Anything I am doing wrong here?
> --
> View this message in context:
> Sent from the Apache Spark Developers List mailing list archive at

Nicolas Garneau

View raw message