Github user ueshin commented on a diff in the pull request: https://github.com/apache/spark/pull/310#discussion_r11246612 --- Diff: bin/spark-shell --- @@ -145,7 +145,7 @@ function resolve_spark_master(){ fi if [ -z "$MASTER" ]; then - MASTER="$DEFAULT_MASTER" + export MASTER="$DEFAULT_MASTER" --- End diff -- I've just found this bug. I think you also need to add `export` at [line 130](https://github.com/aarondav/spark/blob/6a0e34063f97da38fdaf1cb72a033dabcc4c9b04/bin/spark-shell#L130) for `-m` option or at [the last part](https://github.com/aarondav/spark/blob/6a0e34063f97da38fdaf1cb72a033dabcc4c9b04/bin/spark-shell#L150) of `resolve_spark_master` function.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---