September 2015
Intermediate to advanced
148 pages
3h 20m
English
The best way to learn Spark is through the Spark shell. There are two different shells for Scala and Python. But since the GraphX library is the most complete in Scala at the time this book was written, we are going to use the spark-shell, that is, the Scala shell. Let's launch the Spark shell inside the $SPARKHOME/bin from the command line:
$SPARKHOME/bin/spark-shell
If you set the current directory (cd) to $SPARKHOME, you can simply launch the shell with:
cd $SPARKHOME ./bin/spark-shell
If you happen to get an error saying something like: Failed to find Spark assembly in spark-1.4.1/assembly/target/scala-2.10. You need to build Spark before running this program, then it means that you have downloaded the ...
Read now
Unlock full access