On a local node:
export HADOOP_CONF_DIR=<directory with core-site.xml and yarn-site.xml files> export SPARK_HOME=<directory where spark archive was extracted>