Help us understand the problem. What is going on with this article?

learning-spark on Mac OS X Mavericks

More than 5 years have passed since last update.

set up Spark

shell
$ cd /usr/local/Cellar
$ git clone git@github.com:apache/spark.git
$ cd spark
$ sbt/sbt assembly
$ sbt/sbt publish-local

configure SPARK_HOME

shell
$ vi ~/.xxxrc
export SPARK_HOME=/usr/local/Cellar/spark

spark-shell

shell
$ cd $SPARK_HOME
$ ./bin/spark-shell

build

shell
$ git clone git@github.com:databricks/learning-spark.git
$ cd learning-spark
$ sbt/sbt compile

run

shell
$ sbt/sbt run
Multiple main classes detected, select one to run:
shell
$ sbt/sbt 'run-main com.oreilly.learningsparkexamples.scala.BasicAvgFromFile local[4] inputfile'
shell
$ sbt/sbt assembly
$ cp target/scala-2.10/learning-spark-examples-assembly-0.0.1.jar ~/.
$ cd ~
$ CLASSPATH=./learning-spark-examples-assembly-0.0.1.jar
$ java -cp $CLASSPATH com.oreilly.learningsparkexamples.scala.BasicAvgFromFile local[4] inputfile
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away