http://gethue.com/password-management-in-hue/
[test@serverA ~]$ export HUE_CONF_DIR="/var/run/cloudera-scm-agent/process/`sudo ls -alrt /var/run/cloudera-scm-agent/process | grep HUE | tail -1 | awk '{print $9}'`"
[test@ServerA ~]$ cd /opt/cloudera/parcels/CDH-5.4.0-1.cdh5.4.0.p0.27/lib/hue
[test@ServerA hue]$ sudo build/env/bin/hue shell
>>> from django.contrib.auth.models import User
>>> a = User.objects.get(username='admin')
>>> a.is_staff = True
>>> a.is_superuser = True
>>> a.set_password('admin')
>>> a.save()
>>> quit()