Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
percolate python_version down to the python-executable hadoop config
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnage101 committed Jul 26, 2019
1 parent 62dbed0 commit daff797
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/devstack.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ task_failed = 30
scheduling_error = 35
unhandled_exception = 40

[hadoop]
python-executable = ${PYTHON_EXECUTABLE}

[hive]
release = apache
version = 1.0
Expand Down
3 changes: 3 additions & 0 deletions config/docker_test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ task_failed = 30
scheduling_error = 35
unhandled_exception = 40

[hadoop]
python-executable = ${PYTHON_EXECUTABLE}

[hive]
release = apache
version = 1.0
Expand Down
3 changes: 3 additions & 0 deletions config/luigi_docker.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ task_failed = 30
scheduling_error = 35
unhandled_exception = 40

[hadoop]
python-executable = ${PYTHON_EXECUTABLE}

[hive]
release = apache
version = 1.0
Expand Down
3 changes: 3 additions & 0 deletions config/test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ task_failed = 30
scheduling_error = 35
unhandled_exception = 40

[hadoop]
python-executable = ${PYTHON_EXECUTABLE}

[hive]
release = apache
version = 1.0
Expand Down
2 changes: 2 additions & 0 deletions edx/analytics/tasks/launchers/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def run_task_playbook(inventory, arguments, uid):
if arguments.workflow_profiler:
env_vars['WORKFLOW_PROFILER'] = arguments.workflow_profiler
env_vars['WORKFLOW_PROFILER_PATH'] = log_dir
if arguments.python_version:
env_vars['PYTHON_EXECUTABLE'] = python_version

env_var_string = ' '.join('{0}={1}'.format(k, v) for k, v in env_vars.iteritems())

Expand Down

0 comments on commit daff797

Please sign in to comment.