Vipin Rathor created SLIDER-1254: ------------------------------------ Summary: No Python binary in env causes Slider Agent to fail Key: SLIDER-1254 URL: https://issues.apache.org/jira/browse/SLIDER-1254 Project: Slider Issue Type: Bug Components: agent Affects Versions: Slider 0.92 Reporter: Vipin Rathor
If there is no Python binary found in environment, Slider agent would fail with 'Permission Denied' error like this: {code:java} INFO 2017-12-07 18:19:47,286 AgentToggleLogger.py:40 - Running command ['', '-S', u'/yarn/d01/local/usercache/hive/appcache/application_1510963163469_25079/filecache/11/llap-07Dec2017.zip/package/scripts/llap.py', u'INSTALL', '/yarn/d01/logs/application_1510963163469_25079/container_e84_1510963163469_25079_01_000004/command-3.json', '/yarn/d01/local/usercache/hive/appcache/application_1510963163469_25079/filecache/11/llap-07Dec2017.zip/package', '/yarn/d01/logs/application_1510963163469_25079/container_e84_1510963163469_25079_01_000004/structured-out-3.json', 'INFO', '/yarn/d01/local/usercache/hive/appcache/application_1510963163469_25079/container_e84_1510963163469_25079_01_000004'] INFO 2017-12-07 18:19:47,286 AgentToggleLogger.py:40 - Setting env: PYTHONPATH to /yarn/d01/local/usercache/hive/appcache/application_1510963163469_25079/filecache/10/slider-agent.tar.gz/slider-agent/jinja2:/yarn/d01/local/usercache/hive/appcache/application_1510963163469_25079/filecache/10/slider-agent.tar.gz/slider-agent ERROR 2017-12-07 18:19:47,331 CustomServiceOrchestrator.py:171 - Caught an exception while executing command: <type 'exceptions.OSError'>: [Errno 13] Permission denied Traceback (most recent call last): File "/yarn/d01/local/usercache/hive/appcache/application_1510963163469_25079/filecache/10/slider-agent.tar.gz/slider-agent/agent/CustomServiceOrchestrator.py", line 158, in runCommand environment_vars) File "/yarn/d01/local/usercache/hive/appcache/application_1510963163469_25079/filecache/10/slider-agent.tar.gz/slider-agent/agent/PythonExecutor.py", line 88, in run_file environment_vars) File "/yarn/d01/local/usercache/hive/appcache/application_1510963163469_25079/filecache/10/slider-agent.tar.gz/slider-agent/agent/PythonExecutor.py", line 158, in launch_python_subprocess stderr=tmperr, close_fds=close_fds, env=env) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 13] Permission denied {code} Notice that the "Running command" line prints empty command name. One way to fix this would be to use a default path like "/usr/bin/python" if no path is set in the environment. -- This message was sent by Atlassian JIRA (v6.4.14#64029)