Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
3.0.0
-
None
-
None
Description
Note that this issue does not affect Ambari 2.5, only trunk.
When creating multiple flume agents on the same host, the following exception is thrown because of a missing import for shell:
Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py", line 130, in <module> FlumeHandler().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 283, in execute method(env) File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 707, in restart self.stop(env, upgrade_type=upgrade_type) File "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py", line 60, in stop flume(action='stop') File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk return fn(*args, **kwargs) File "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py", line 228, in flume pid = shell.checked_call(("cat", pid_file), sudo=True)[1].strip() NameError: global name 'shell' is not defined
Attachments
Attachments
Issue Links
- links to