Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-7919

HUE ooze error 'NoneType' object has no attribute 'is_superuser'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.4.0
    • Component/s: con.oozie
    • Labels:
      None

      Description

      Am facing the following error - 'NoneType' object has no attribute 'is_superuser' - when i try to submit a oozie coordinator from Hue.

      30/Jan/2018 09:05:26 +0800] access INFO 10.99.101.132 oozie - "POST /jobbrowser/jobs/ HTTP/1.1"
      [30/Jan/2018 09:05:22 +0800] middleware INFO Processing exception: 'NoneType' object has no attribute 'is_superuser': Traceback (most recent call last):
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/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.13.1-1.cdh5.13.1.p0.2/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.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/decorators.py", line 113, in decorate
      return view_func(request, *args, **kwargs)
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/decorators.py", line 75, in decorate
      return view_func(request, *args, **kwargs)
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/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.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/views/editor2.py", line 700, in _submit_coordinator
      wf_dir = Submission(request.user, wf, request.fs, request.jt, mapping, local_tz=coordinator.data['properties']['timezone']).deploy()
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/libs/liboozie/src/liboozie/submission2.py", line 291, in deploy
      oozie_xml = self.job.to_xml(self.properties)
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/models2.py", line 459, in to_xml
      'workflow_mapping': workflow_mapping
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/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.13.1-1.cdh5.13.1.p0.2/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.13.1-1.cdh5.13.1.p0.2/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.13.1-1.cdh5.13.1.p0.2/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.13.1-1.cdh5.13.1.p0.2/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/tmp4ayUTt/oozie/editor2/gen/workflow.xml.mako.py", line 110, in render_body
      __M_writer( node.to_xml(mapping, node_mapping, workflow_mapping) )
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/models2.py", line 821, in to_xml
      notebook = Notebook(document=Document2.objects.get_by_uuid(user=self.user, uuid=self.data['properties']['uuid']))
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/core/src/desktop/models.py", line 975, in get_by_uuid
      latest_doc.can_read_or_exception(user)
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/core/src/desktop/models.py", line 1305, in can_read_or_exception
      if self.can_read(user):
      File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/core/src/desktop/models.py", line 1302, in can_read
      return user.is_superuser or self.owner == user or self.can_write(user) or has_read_permissions
      AttributeError: 'NoneType' object has no attribute 'is_superuser'
      [30/Jan/2018 09:05:22 +0800] resource DEBUG GET Got response: {"oozie.email.smtp.auth":"false","oozie.service.ELService.functions.coord-job-submit-data":"\n coord:dataIn=org.apache.oozie.coord.CoordELFunctions#ph1_coord_dataIn_echo,\n coord:dataOut=org.apache.oozie.coord.CoordELFunctions#ph1_coord_dataOut_echo,\n coord:nominalTime=org.apache.oozie.coord.CoordELFunctions#ph1_coord_nominalTime_echo_wrap,\n coord:actualTime=org.apache.oozie.coord.CoordELFunctions#ph1_coord_actualTime_echo_wrap,\n coord:dateOffset=org.apache.oozie.coord.CoordELFunctions#ph1_coord_dateOffset_echo,\n coord:dateTzOffset=org.apache.oozie.coord.CoordELFunctions#ph1_coord_dateTzOffset_echo,\n coord:formatTime=org.apache.oozie.coord.CoordELFunctions#ph1_coord_formatTime_echo,\n coord:epochTime=org.apache.oozie.coord.CoordELFunctions#ph1_coord_epochTime_echo,\n coord:actionId=org.apache.oozie.coord.CoordELFunctions#ph1_coord_actionId_echo,\n coord:name=org.apache.ooz...
      [30/Jan/2018 09:05:22 +0800] kerberos_ DEBUG handle_mutual_auth(): returning <Response [200]>
      [30/Jan/2018 09:05:22 +0800] kerberos_ DEBUG authenticate_server(): returning <Response [200]>
      [30/Jan/2018 09:05:22 +0800] kerberos_ DEBUG authenticate_server(): Authenticate header: YGYGCSqG

        Attachments

          Activity

            People

            • Assignee:
              veer veer
              Reporter:
              veer veer
            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: