mirror of
https://github.com/bspeice/kiva-dig
synced 2024-12-04 20:58:09 -05:00
df0132d466
And also easy script for running a Spark notebook
10 lines
338 B
Bash
Executable File
10 lines
338 B
Bash
Executable File
SPARK_DIR="spark-2.0.1-bin-hadoop2.7"
|
|
SPARK_URL="http://apache.claz.org/spark/spark-2.0.1/spark-2.0.1-bin-hadoop2.7.tgz"
|
|
|
|
if [ ! -d "$SPARK_DIR" ]; then
|
|
echo "Downloading Spark distribution..."
|
|
wget "$SPARK_URL" -O - | tar xzf -
|
|
fi
|
|
|
|
PYSPARK_DRIVER_PYTHON="jupyter" PYSPARK_DRIVER_PYTHON_OPTS="notebook" "./$SPARK_DIR/bin/pyspark"
|