Hi @yellowD,
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,
Li
Li Wang, Technical Solution Manager
Was your question answered? Make sure to mark the answer as the accepted solution.If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:Terms of Service
Community Guidelines
How to use the forum