Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-8880

[oozie] Fix KeyError when execute coordinator

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.5.0
    • Component/s: connector.oozie
    • Labels:
      None

      Description

      Coordinator submission error:

      [04/Jun/2019 10:51:18 +0900] middleware INFO Processing exception: 'execution': Traceback (most recent call last):
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.
      py", line 112, in get_response
          response = wrapped_callback(request, *callback_args, **callback_kwargs)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/transaction.py", line 371, in inner
          return func(*args, **kwargs)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/apps/oozie/src/oozie/decorators.py", line 113, in decorate
          return view_func(request, *args, **kwargs)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/apps/oozie/src/oozie/decorators.py", line 75, in decorate
          return view_func(request, *args, **kwargs)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/apps/oozie/src/oozie/views/editor2.py", line 674, in submit_coordinator
          job_id = _submit_coordinator(request, coordinator, mapping)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/apps/oozie/src/oozie/views/editor2.py", line 706, in _submit_coordinator
          job_id = submission.run()
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/desktop/libs/liboozie/src/liboozie/submission2.py", line 54, in decorate
          deployment_dir = self.deploy()
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/desktop/libs/liboozie/src/liboozie/submission2.py", line 298, in deploy
          oozie_xml = self.job.to_xml(self.properties)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/apps/oozie/src/oozie/models2.py", line 3383, in to_xml
          return re.sub(re.compile('\s*\n+', re.MULTILINE), '\n', django_mako.render_to_string(tmpl, {'coord': self, 'mapping': mapping})).encode('utf-8', 'xmlcharrefreplace')
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal
          result = template.render(**data_dict)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/template.py", line 443, in render
          return runtime._render(self, self.callable_, args, data)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 786, in _render
          **_kwargs_for_callable(callable_, data))
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 818, in _render_context
          _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
        File "/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/lib/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 844, in _exec_template
          callable_(context, *args, **kwargs)
        File "/tmp/tmprM9oac/oozie/editor2/gen/coordinator.xml.mako.py", line 84, in render_body
          if coord.data['properties']['timeout'] or coord.data['properties'].get('concurrency') or coord.data['properties']['execution'] or coord.data['properties'].get('throttle'):
      KeyError: 'execution'
      

        Attachments

          Activity

            People

            • Assignee:
              yingc Ying Chen
              Reporter:
              yingc Ying Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: