Jonathan Hurley created AMBARI-18999:
----------------------------------------

             Summary: Unable to Start Multiple Flume Agents Due to Missing 
Import
                 Key: AMBARI-18999
                 URL: https://issues.apache.org/jira/browse/AMBARI-18999
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 3.0.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Critical
             Fix For: 3.0.0


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}}:

{code}
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
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to