Skip to main content

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:

Image
Example of resetting the Hue admin password

  1. Access the server where Hue is installed.

    Availability typeDescription
    Single type   Master 1
    HA typeMaster 3
  2. 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)
  3. Run the script.

    Run Hue script
    from django.contrib.auth.models import User
    user = User.objects.get(username='username')
    user.set_password('new_password')
    user.save()
  4. Reconnect to Hue using the newly reset password.