Created
August 6, 2015 00:11
-
-
Save pashields/9fe662d6ec5c079bdf70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "spark-env-var-test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spark.mesos.executor.home /home/ubuntu/spark-1.5.0-SNAPSHOT-bin-custom-spark | |
spark.mesos.coarse true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
MESOS_NATIVE_JAVA_LIBRARY=/home/ubuntu/mesos-0.23.0/build/src/.libs/libmesos.so | |
SPARK_ENV_VAR="1" | |
NOT_SPARK_ENV_VAR="2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.logging.Logger | |
object Test { | |
val logger = Logger.getLogger("Test Logger") | |
def main(args: Array[String]): Unit = { | |
logger.info(sys.env.get("SPARK_ENV_VAR").toString) | |
logger.info(sys.env.get("NOT_SPARK_ENV_VAR").toString) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment