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

Commit 3daf46d

Browse files
committed
percolate python_version down to the python-executable hadoop config
1 parent 62dbed0 commit 3daf46d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

edx/analytics/tasks/launchers/remote.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def run_task_playbook(inventory, arguments, uid):
121121
if arguments.workflow_profiler:
122122
env_vars['WORKFLOW_PROFILER'] = arguments.workflow_profiler
123123
env_vars['WORKFLOW_PROFILER_PATH'] = log_dir
124+
if arguments.python_version:
125+
env_vars['HADOOP_PYTHON_EXECUTABLE'] = python_version
124126

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

edx/analytics/tasks/tests/acceptance/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ def setUp(self):
209209
self.warehouse_path = url_path_join(self.test_root, 'warehouse')
210210
self.edx_rest_api_cache_root = url_path_join(self.test_src, 'edx-rest-api-cache')
211211
task_config_override = {
212+
'hadoop': {
213+
'python-executable': os.environ('HADOOP_PYTHON_EXECUTABLE', '/usr/bin/python')
214+
}
212215
'hive': {
213216
'database': database_name,
214217
'warehouse_path': self.warehouse_path

0 commit comments

Comments
 (0)