Skip to content

Commit

Permalink
use spark package name in driver kill command (apache#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Rand authored Dec 6, 2017
1 parent 4592e3c commit ff5325e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def wait_for_executors_running(framework_name, num_executors, wait_time=600):

def kill_driver(driver_id, app_name):
LOGGER.info("Killing {}".format(driver_id))
cmd = "dcos spark --name={app_name} kill {driver_id}".format(app_name=app_name, driver_id=driver_id)
cmd = "dcos {spark_package} --name={app_name} kill {driver_id}"\
.format(spark_package=SPARK_PACKAGE_NAME, app_name=app_name, driver_id=driver_id)
out = subprocess.check_output(cmd, shell=True).decode("utf-8")
return out

Expand Down

0 comments on commit ff5325e

Please sign in to comment.