Reset Hue password
If you have forgotten the Hue admin password, you need to reset it. The steps to reset the admin password are as follows:
Example of resetting the Hue admin password
-
Access the server where Hue is installed.
Availability type Description Single type Master 1 HA type Master 3 -
Run the Hue Shell.
Run Hue Shell/opt/hue/build/env/bin/hue shell
Python 2.7.17 (default, Feb 27 2021, 15:10:58)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole) -
Run the script.
Run Hue scriptfrom django.contrib.auth.models import User
user = User.objects.get(username='username')
user.set_password('new_password')
user.save() -
Reconnect to Hue using the newly reset password.