Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

hue default password after new cluster install

avatar
New Contributor

Just installed CDH5.11.1 on a new cluster of 16 hosts. What's is the Hue WebUI default login? hue/hue ; admin/admin; cloudera/cloudera none of these works... Service seems to be running.

6 REPLIES 6

avatar
New Contributor

following this instruction. http://gethue.com/password-management-in-hue/

 

But getting errors. [root@cloudera-hd001 hue]# build/env/bin/hue shell /run/cloudera-scm-agent/process/151-hue-HUE_SERVER/altscript.sh: line 12: /bin/java: No such file or directory Traceback (most recent call last): File "build/env/bin/hue", line 12, in load_entry_point('desktop==3.9.0', 'console_scripts', 'hue')() File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/desktop/core/src/desktop/manage_entry.py", line 59, in entry execute_from_command_line(sys.argv) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 261, in fetch_command commands = get_commands() File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 107, in get_commands apps = settings.INSTALLED_APPS File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 54, in __getattr__ self._setup(name) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 49, in _setup self._wrapped = Settings(settings_module) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 128, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/importlib.py", line 40, in import_module __import__(name) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/desktop/core/src/desktop/settings.py", line 325, in "PASSWORD" : desktop.conf.get_database_password(), File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/desktop/core/src/desktop/conf.py", line 1474, in get_database_password password = DATABASE.PASSWORD_SCRIPT.get() File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/desktop/core/src/desktop/lib/conf.py", line 147, in get return self.config.get_value(data, present=present, prefix=self.prefix, coerce_type=True) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/desktop/core/src/desktop/lib/conf.py", line 263, in get_value return self._coerce_type(raw_val, prefix) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/desktop/core/src/desktop/lib/conf.py", line 283, in _coerce_type return self.type(raw) File "/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/lib/hue/desktop/core/src/desktop/lib/conf.py", line 714, in coerce_password_from_script raise subprocess.CalledProcessError(p.returncode, script) subprocess.CalledProcessError: Command '/run/cloudera-scm-agent/process/151-hue-HUE_SERVER/altscript.sh sec-5-password' returned non-zero exit status 127

avatar
New Contributor

I had the same situation @HMC. I created again the admin user with 

 

hue createsuperuser --cm-managed

Without the "--cm-managed" flag it didn't work

avatar
Champion

@HMC

 

The default uid/password is admin/admin. Below are few recommendations where you can focus to fix this issue

 

1. Adding required userid/pwd in hue.ini may help to fix this issue

2. Make sure you have created the hue user & granted required access on your meta database (mysql, postgresql, etc)

 Ex: create user 'hue' identified by 'hadoop1'; grant all on hue.* to hue;

3. if you have configured Hue with LDAP then the above credential will not work until you add admin user in your ldap

4. some configuration issue with hue

 

 

avatar
New Contributor

Still not working. all lines in /etc/hue/hue.ini are commented out. Which line should i change.

 

Mysql  setting below.  Thanks

grant all on hue.*TO 'admin'@'%' IDENTIFIED BY '====='

grant all on hue.*TO 'root'@'%' IDENTIFIED BY '====='

grant all on hue.*TO 'hue'@'%' IDENTIFIED BY '====='

 

 

hue.png

avatar
Master Guru

@HMC 

 

By default, CDH Hue has no superuser user/pass since the backend is "desktop.auth.backend.AllowFirstUserDjangoBackend" by default.

 

Whatever user and password you enter on first login will be the superuser.

If your authentication is failing, it means that someone already logged in with a username and password.

 

This page can help you change a password or create a new superuser (assuming you are still using desktop.auth.backend.AllowFirstUserDjangoBackend)

 

http://gethue.com/password-management-in-hue/

 

-Ben