Support Questions

Find answers, ask questions, and share your expertise

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!

3 REPLIES 3

avatar
Frequent Visitor

Please help me for the solution?

avatar
Rising Star

@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.

 
 

avatar
Frequent Visitor

Hi,

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

Thank you!