summarylogtreecommitdiffstats
path: root/spark-env.sh
blob: c6ed3dbc450ebe5bb58fc0df82f8c0a13cad151c (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
export JAVA_HOME=/usr/lib/jvm/default-runtime
if (command -v hadoop 2> /dev/null); then
    export SPARK_DIST_CLASSPATH=$(hadoop classpath)
else
    export SPARK_DIST_CLASSPATH=""
fi
SPARK_MASTER_IP=localhost
SPARK_LOCAL_IP=localhost