Skip to main content
SLT_Clou
Silver ⭐️⭐️
September 22, 2025
Solved

Add Local User in HUE without AD

Hi everyone,

I need to know that can i add random user(not LDAPuser) in HUE without having AD user.

Please see the atatched image.it's avaiable only LDAP user

as well as i need to Assign Roles/Permissions in apache ranger too

SLT_Clou_0-1758518716144.png

 

Cloudera manager version - CDP 7.7.1

 

Thank you!

rsanchez
rsanchezAnswer
Gold ⭐️
September 23, 2025

@SLT_Clou 

You need to create the local user using the command mentioned before. If hdfs user was created for hue as an admin, you can use it to access Hue UI with local authentication. If not, create a new superuser and then login with that to Hue.

5 replies

SLT_Clou
SLT_ClouAuthor
Silver ⭐️⭐️
September 22, 2025

Please help me for the solution?

Translate
rsanchez
Gold ⭐️
Gold ⭐️
September 23, 2025

@SLT_Clou 

From UI we do not have a way to create a local superuser; you will need to do it from the CLI following the steps below:

  1. Connect to any of your Hue servers.
  2. Run the below commands to create your superuser:
  • export HUE_CONF_DIR="/var/run/cloudera-scm-agent/process/`ls -lrt /var/run/cloudera-scm-agent/process | awk '{print $9}' | egrep -e '[[:digit:]]{1,3}\-hue\-HUE_SERVER' | tail -1`"
  • export HUE_IGNORE_PASSWORD_SCRIPT_ERRORS=1
  • export HUE_DATABASE_PASSWORD=hue (change this for your Hue backend DB password)
  • Then run the create superuser command:
/opt/cloudera/parcels/CDH/lib/hue/build/env/bin/hue createsuperuser --username admin
 
To access Hue using the new superuser, you need to apply a change in the Hue configuration:
 
  1. Access CM >> Hue >> Configuration
  2. Look for Authentication Backend
  3. Select the option "desktop.auth.backend.LdapBackend,desktop.auth.backend.AllowFirstUserDjangoBackend"
  4. Restart Hue service.

After applying that change, when you access the Hue UI login page, you will see a drop-down box in which you can select between LDAP and Local authentication, use local, and then log in with the new superuser.

Hope the above steps are clear and you can fix your concern. If you have any questions, let me know.

 
 
Translate
SLT_Clou
SLT_ClouAuthor
Silver ⭐️⭐️
September 23, 2025

Hi,

Thank you for the respond. i have a super user as hdfs.i need to create normal local user?

Thank you!

Translate
rsanchez
Gold ⭐️
rsanchezAnswer
Gold ⭐️
September 23, 2025

@SLT_Clou 

You need to create the local user using the command mentioned before. If hdfs user was created for hue as an admin, you can use it to access Hue UI with local authentication. If not, create a new superuser and then login with that to Hue.

Translate
SLT_Clou
SLT_ClouAuthor
Silver ⭐️⭐️
September 24, 2025

Thank you very much.i got your suggestion!

Translate