Created on 10-09-2013 04:27 AM - edited 09-16-2022 01:48 AM
Hi, suddenly we've clicked
"GET /oozie/list_workflows/ HTTP/1.1"
And got exception. What do we do wrong?
19:19:54.000 | INFO | access | 10.100.141.164 devops - "GET /oozie/list_workflows/ HTTP/1.1" |
19:19:54.000 | INFO | middleware | Processing exception: User matching query does not exist.: Traceback (most recent call last): |
Created 01-30-2014 10:40 PM
Magic tricks with ids didn't help. They brought more problem during migration later.
We did partial migration (users+their saved pig/hive/impala scripts/queries) from sqlite to postgre and the problem gone.
The problem is solved for us.
Created 10-09-2013 02:53 PM
In the Hue shell, can you find the culprit?
build/env/bin/hue shell
>
from django.contrib.auth.models import User
from oozie.models import Workflow
sample_user = User.objects.get(username='sample')
for workflow in Workflow.objects.all():
try:
workflow.owner
except Exception, e:
print e
print workflow
Workflow.objects.filter(owner=None).update(owner=sample_user)
Created 10-10-2013 12:25 AM
This is very probably this bug: https://issues.cloudera.org/browse/HUE-1091 (workaround explained there)
Created on 10-10-2013 12:42 AM - edited 10-17-2013 02:15 AM
We are now migrating to 4.4, thanks, we'll check.
We are still in progress, I'll report later how thing go on.
Created 12-06-2013 06:08 AM
We tried to do as described here: https://issues.cloudera.org/browse/HUE-1091
Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.contrib.auth.models import User
>>> User.objects.create(id=1100713, username='oozie_sample')
<User: oozie_sample>
But we still have an error
Created 12-09-2013 02:37 PM
You should try to get the workflows with the missing user with the above script.
If it is not enought, you could try removing the 'oozie_sample' and replace him with
User.objects.create(id=1100713, username='sample')
Created 12-10-2013 01:15 AM
How can I delete user?
Created 12-10-2013 02:54 PM
e.g.
User.objects.get(username='oozie_sample').delete()
Created 12-10-2013 02:55 PM
And I would recommend this:
from django.contrib.auth.models import User
from oozie.models import Workflow
sample_user = User.objects.get(username='sample')
for workflow in Workflow.objects.all():
try:
workflow.owner
except Exception, e:
print e
print workflow
Workflow.objects.filter(owner=None).update(owner=s
ample_user)
Created 12-11-2013 05:48 AM
I tryed
>>> User.objects.get(username='oozie_sample').delete()
>>> User.objects.get(username='sample').delete()
>>>
But user 'sample' is still present on "useradmin" page... What do I do wrong?