This is kind of a weird option to have IMO; a better behavior would be to make MASTER default to spark://$SPARK_MASTER_IP:$SPARK_MASTER_PORT if it hasn't been set but those two have been.