Skip to content

Commit

Permalink
[SPARK-427] fix strict mode in python tests (apache#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgummelt authored Mar 21, 2017
1 parent 30b6606 commit 384f846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ check_env() {
-o -z "$S3_BUCKET" \
-o -z "$S3_PREFIX" \
-o -z "$TEST_JAR_PATH" \
-o -z "$COMMONS_DIR"]; then
-o -z "$COMMONS_DIR" ]; then
echo "Missing required env. See check in ${BIN_DIR}/test.sh."
echo "Environment:"
env
Expand Down
7 changes: 3 additions & 4 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,9 @@ def _run_tests(app_url, app_args, expected_output, args=[]):

def _submit_job(app_url, app_args, args=[]):
if _is_strict():
config['spark.mesos.driverEnv.MESOS_MODULES'] = \
'file:///opt/mesosphere/etc/mesos-scheduler-modules/dcos_authenticatee_module.json'
config['spark.mesos.driverEnv.MESOS_AUTHENTICATEE'] = 'com_mesosphere_dcos_ClassicRPCAuthenticatee'
config['spark.mesos.principal'] = 'service-acct'
args += ["--conf", 'spark.mesos.driverEnv.MESOS_MODULES=file:///opt/mesosphere/etc/mesos-scheduler-modules/dcos_authenticatee_module.json']
args += ["--conf", 'spark.mesos.driverEnv.MESOS_AUTHENTICATEE=com_mesosphere_dcos_ClassicRPCAuthenticatee']
args += ["--conf", 'spark.mesos.principal=service-acct']
args_str = ' '.join(args + ["--conf", "spark.driver.memory=2g"])
submit_args = ' '.join([args_str, app_url, app_args])
cmd = 'dcos --log-level=DEBUG spark --verbose run --submit-args="{0}"'.format(submit_args)
Expand Down

0 comments on commit 384f846

Please sign in to comment.