Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18999

Unable to Start Multiple Flume Agents Due to Missing Import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.0.0
    • 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

        1. AMBARI-18999.patch
          0.9 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: