01-14-2019 05:54 AM - last edited on 01-15-2019 05:49 AM by cjervis
I have the following problem: I have a Hue account and I can not login. The password does not work anymore (although I never changed it). Now I wanted to change my password (/..../hue/build/env/bin/hue changepassword), but unfortunately it does not work. Can someone possibly help me?
I have tried the following:
Next, I execute the password-change command:
I execute the same command but with sudo:
I have already tried a new account (createsuperuser), but it does not work. Is there anything else I can do? Or am
I generally doing something wrong? I'm grateful for any help!
01-15-2019 01:31 PM
From the output, it looks like you are using CDH5.15.1. Please confirm if it is not.
Starting from CDH 5.12.2, 5.13.1, or later versions of CDH, it is no longer necessary to export the HUE_CONF_DIR, HUE_DATABASE_PASSWORD, and HUE_IGNORE_PASSWORD_SCRIPT_ERRORS environment variables.
Instead, from the Hue sever, run the following as the root user (due to security settings of CM process directories):
/opt/cloudera/parcels/CDH/lib/hue/build/env/bin/hue changepassword <USER-TO-CHANGE> --cm-managed
So if you want to change the password for user named "admin", then run the command like this:
/opt/cloudera/parcels/CDH/lib/hue/build/env/bin/hue changepassword admin --cm-managed
See my test result below:
# /opt/cloudera/parcels/CDH/lib/hue/build/env/bin/hue changepassword admin --cm-managed Changing password for user 'admin' Password: Password (again): Password changed successfully for user 'admin'
Thanks and hope this helps,