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

Unable to save the migrated workflows to new Hue UI editor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.1.0
    • Fix Version/s: None
    • Component/s: con.oozie
    • Environment:

      EMR 5.9
      Hue 4.1
      Oozie 4.3

    • Target Version:
    • Backward Incompatible:
      Backward Incompatible

      Description

      On migrating Oozie workflows from Hue 3.7 to Hue 4.1, using dumpdata and loaddata commands, the workflows gets migrated but when we try to copy them to new Hue editor and Save it we get the following exception

      [17/Nov/2017 04:12:22 -0800] access INFO 172.31.18.115 hadoop - "POST /oozie/editor/workflow/save/ HTTP/1.1"
      [17/Nov/2017 04:12:22 -0800] middleware INFO Processing exception: 'NoneType' object has no attribute 'do_as_user': Traceback (most recent call last):
      File "/usr/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 "/usr/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 "/usr/lib/hue/apps/oozie/src/oozie/decorators.py", line 113, in decorate
      return view_func(request, *args, **kwargs)
      File "/usr/lib/hue/apps/oozie/src/oozie/decorators.py", line 103, in decorate
      return view_func(request, *args, **kwargs)
      File "/usr/lib/hue/apps/oozie/src/oozie/views/editor2.py", line 206, in save_workflow
      workflow_doc = _save_workflow(workflow, layout, request.user)
      File "/usr/lib/hue/apps/oozie/src/oozie/models2.py", line 3659, in _save_workflow
      _import_workspace(fs, user, workflow_instance)
      File "/usr/lib/hue/apps/oozie/src/oozie/models2.py", line 3635, in _import_workspace
      job.check_workspace(fs, user)
      File "/usr/lib/hue/apps/oozie/src/oozie/models2.py", line 94, in check_workspace
      create_directories(fs, [REMOTE_SAMPLE_DIR.get()])
      File "/usr/lib/hue/desktop/libs/liboozie/src/liboozie/submission2.py", line 512, in create_directories
      if not fs.do_as_user(fs.DEFAULT_USER, fs.exists, directory):
      AttributeError: 'NoneType' object has no attribute 'do_as_user'

      Also, saving the workflow in Hue 3 UI old editor in Hue 4.1 results in omitting Shell Action arguments and File Path, which is making the imported workflows unusable

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                amandeepbatra Amandeep Batra
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: