Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HUE-7919] oozie error 'NoneType' object has no attribute 'is_superuser' #775

Merged
merged 1 commit into from Jan 2, 2019

Conversation

TopCaver
Copy link
Contributor

Here are my reappearance steps:

  1. create a shell or spark workflow ,(type as Pig/Sqoop/Dist/Shell/MapReduce/Java/Spark , also met issues)
  2. create a schedule of this workflow.
  3. submit schedule
    would get HUE-7919 problem.

In Class Coordinator of hue/apps/oozie/src/oozie/models2.py ,

@property
def workflow(self)

initialize a Workflow without 'user' parameter, then the workflow.user=None, when passing to check can_read/write_or_exception(), would raise 'NoneType' object has no attribute 'is_superuser'

--
ps: i'm not sure its exactly correct

Here are my reappearance steps:
1. create a shell or spark workflow ,(type as Pig/Sqoop/Dist/Shell/MapReduce/Java/Spark , also met issues)
2. create a schedule of this workflow.
3. submit schedule
would get HUE-7919 problem.

In Class Coordinator of hue/apps/oozie/src/oozie/models2.py , 
```
@Property
def workflow(self)
```
initialize a Workflow without 'user' parameter, then the workflow.user=None, when passing to check can_read/write_or_exception(), would  raise  'NoneType' object has no attribute 'is_superuser'
@huangered
Copy link

that is good , i have already use it to fix the issue. @TopCaver

@romainr romainr merged commit 4db8f45 into cloudera:master Jan 2, 2019
@romainr
Copy link
Contributor

romainr commented Jan 2, 2019

Thanks!

cloudera-hudson pushed a commit that referenced this pull request Mar 29, 2019
…er' (#775)

Here are my reappearance steps:
1. create a shell or spark workflow ,(type as Pig/Sqoop/Dist/Shell/MapReduce/Java/Spark , also met issues)
2. create a schedule of this workflow.
3. submit schedule
would get HUE-7919 problem.

In Class Coordinator of hue/apps/oozie/src/oozie/models2.py ,
```
@Property
def workflow(self)
```
initialize a Workflow without 'user' parameter, then the workflow.user=None, when passing to check can_read/write_or_exception(), would  raise  'NoneType' object has no attribute 'is_superuser'
(cherry picked from commit 4db8f45)
@TopCaver TopCaver deleted the patch-1 branch March 25, 2020 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants