Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Delete Hue Superuser

Delete Hue Superuser

New Contributor

is it possible to delete hue superuser account once it is created?

Please post the procedure for the same.

 

Thanks,

Debasish

4 REPLIES 4

Re: Delete Hue Superuser

Super Guru

@DebasishG,

 

Yes, you can

  • log in as the current superuser
  • create another user or update an existing one to be a 'superuser' for Hue
  • log in as the 'new' superuser and delete the previous superuser account.

I haven't tested, but that should work.

What is your goal in this excercise, though?  Are you seeking to remove all Hue superusers, or, are you just looking to delete the original superuser?

 

Regards,

 

Ben

Re: Delete Hue Superuser

New Contributor

@bgooley 

 

Our current server /cluster will be given to some other team.

The objective is to remove all Hue super users. Is it possible to bring the Hue back to fresh installation state?

 

Thanks,

Debasish

Highlighted

Re: Delete Hue Superuser

Super Guru

@DebasishG,

 

I don't think you can achieve this directly via the UI or command line hue commands since a user cannot delete itself.

If you want a fresh Hue (containing no users, saved queries, etc.) , you can drop the database and recreate it.  That is only if you don't need any of the old Hue stuff.

 

If you need some guidance about how to do this, the following has instructions (you could follow the instructions only for Hue in this case)

https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_installing_configuring_dbs.htm...

 

BASIC STEPS:

  1. Stop Hue
  2. Back up anything you need from the old Hue (if required)
  3. Drop db and recreate
  4. Update the password or other database information in the Hue configuration if needed.
  5. Start Hue

When Hue starts for the first time will create the necessary tables, schema, etc.

 

Not knowing the specifics of what you need from the old Hue to be saved, please proceed with caution and back up your Hue database you anticipate any need for the old data.

Re: Delete Hue Superuser

Cloudera Employee

@Debasish1982 

 

If you just want to remove hue superusers, follow these steps:

  1.   log in as any existing or new superuser
  2.  click on the "Logged in User-->Manager Users" to land url: YourHue:8888/hue/useradmin/users
  3.  select all users you want to remove then click delete button.

You can check in hue's database, the useradmin_userprofile table will not have deleted users.

 

If you want to keep those users but revoke the superuser status, you can just select the user, click "Advanced" then uncheck the "Superuser status", click "Update User" button.

 

Hope this helps!

 

Weixia

 

Don't have an account?
Coming from Hortonworks? Activate your account here