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

[core] Workflow examples conflicts with existing workflows

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 3.5.0
    • Component/s: con.oozie
    • Labels:
      None

      Description

      1. have a look to features with Django objects I guess

      A workaround from https://groups.google.com/a/cloudera.org/forum/#!searchin/hue-user/Installation$20of$20Job$20designer$20examples$20erased%28$3F%29$20all$20my$20job$20designs/hue-user/NyUPR5GIsGA/JzMeZrQIXBUJ:

      This was the stack i had in runcpserver.log when someone browsed to /jobsub :
      
      [23/Sep/2013 02:07:03 +0000] middleware   INFO     Processing exception: get() returned more than one Link -- it returned 2! Lookup parameters were {'name': 'to', 'parent': <Start: start>}: Traceback (most recent call last):
        File "/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py", line 100, in get_response
      
          response = callback(request, *callback_args, **callback_kwargs)
        File "/usr/share/hue/apps/jobsub/src/jobsub/views.py", line 103, in list_designs
          'designs': _list_designs(request, owner, name)
        File "/usr/share/hue/apps/jobsub/src/jobsub/views.py", line 79, in _list_designs
          'node_type': design.start.get_child('to').node_type,
        File "/usr/share/hue/apps/oozie/src/oozie/models.py", line 597, in get_child
          return self.get_link(name).child.get_full_node()
        File "/usr/share/hue/apps/oozie/src/oozie/models.py", line 590, in get_link
          return Link.objects.exclude(name__in=Link.META_LINKS).get(parent=self, name=name)
        File "/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/db/models/query.py", line 343, in get
          % (self.model._meta.object_name, num, kwargs))
      MultipleObjectsReturned: get() returned more than one Link -- it returned 2! Lookup parameters were {'name': 'to', 'parent': <Start: start>}
      
      In the table oozie_link i had "duplicated" lines like (same parent_id, same child_id):
      
      comment|name|id |parent_id|child_id
             |to  |42 |47       |48
             |to  |68 |47       |48
      
      I've deleted these duplicates and that fixed the problem.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abe Abraham Elmahrek
                Reporter:
                romain Romain Rigaux
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: