Created on 03-28-2016 11:13 PM - edited 09-16-2022 03:11 AM
Hi,
I am trying to access the web UI for Hue, using my Hortonworks Sandbox that is running on Azure.
I am doing a request to -> <myvirtualip>:8000 and having connection refused (ERR_CONNECTION_REFUSED) as answer. However, I can access to Ambari (using <myvirtualip>:8080, built in SSH client (<myvirtualip>:4200), etc.
Please, any help would be very useful.
Thanks in advance!!!
Created 04-01-2016 02:16 PM
I took a loot at your server and I found some weird things and fixed them, as described below:
1- When I tried to start hue (service hue start), I receive lots of permissions errors and fixed then changing owner of directory /var/log/hue (chown -R hue:hue /var/log/hue)
2- After turning on debug mode, I saw an error (django.db.utils.DatabaseError: no such table: auth_user), looks like hue database is corrput
3- I started a testserver (/usr/lib/hue/build/env/bin/hue testserver) which creates a fresh database, then I replaced corrupt database with this fresh database (cp /usr/lib/hue/desktop/desktop-test.db /var/lib/hue/desktop.db)
4- Finally, I restarted hue as root: service hue restart.
I'll talk to sandbox team to make sure sandbox 2.4 image from marketplace is ok, it not, we will fix there. if it's ok, we need to find out what cause those weird issues for you.
Created 03-29-2016 02:56 AM
Are you using HDP 2.4?
Can you validate Hue has been started https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_installing_manually_book/content/start_h...
Created 03-29-2016 04:03 PM
Hi Ryan,
Thank you for your answer!
I already started Hue using the commands you sent me. However, when I try to access it through port 8000 I am having NotImplementedError as result.
I am attaching a screenshot notimplementederror.jpg
Request Method: | GET |
---|---|
Request URL: | http://13.92.103.143:8000/accounts/login/?next=/about/ |
Django Version: | |
Exception Type: | NotImplementedError |
Exception Value: | |
Exception Location: | /usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/contrib/auth/models.py in save, line 427 |
Python Executable: | /usr/bin/python2.6 |
Python Version: | |
Python Path: |
Created 03-29-2016 02:03 PM
Hi Ryan,
Thank you for your answer!
I already started Hue using the commands you sent me. However, when I try to access it through port 8000 I am having NotImplementedError as result.
I am attaching a screenshot notimplementederror.jpg
Created on 03-29-2016 10:31 PM - edited 08-18-2019 06:24 AM
After some digging, I found http://gethue.com/how-to-deploy-hue-on-hdp/
It seems the sandbox ships with version 2.6.1 (can you verify you have 2.6.1 by viewing /usr/lib/hue/VERSION)
Can you try to http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/
Let me know if that works
Created 03-30-2016 02:32 PM
What are you trying to do with HUE? You might also consider checking out Ambari Views to see if that could help you accomplish your task.
Created 04-01-2016 02:16 PM
I took a loot at your server and I found some weird things and fixed them, as described below:
1- When I tried to start hue (service hue start), I receive lots of permissions errors and fixed then changing owner of directory /var/log/hue (chown -R hue:hue /var/log/hue)
2- After turning on debug mode, I saw an error (django.db.utils.DatabaseError: no such table: auth_user), looks like hue database is corrput
3- I started a testserver (/usr/lib/hue/build/env/bin/hue testserver) which creates a fresh database, then I replaced corrupt database with this fresh database (cp /usr/lib/hue/desktop/desktop-test.db /var/lib/hue/desktop.db)
4- Finally, I restarted hue as root: service hue restart.
I'll talk to sandbox team to make sure sandbox 2.4 image from marketplace is ok, it not, we will fix there. if it's ok, we need to find out what cause those weird issues for you.
Created 04-01-2016 02:29 PM
Thank you Guilherme!!! Amazing news for me. It's working now 🙂
And thank you all guys, for your answers and your time.
Created 05-31-2016 10:28 AM
I followed this instruction and also did this additional thing to make Hue UI load -> chown -R hue:hue /usr/lib/hue
-Thanks
Created 09-09-2016 01:23 PM
HI,
Im trying setup HUE for HDP 2.4.0. I did all the steps mentioned. When i run the cmd service hue restart using sandbox ssl, im getting a message as hue started. But when i try accessing Hue UI using http://127.0.0.1:8000/ i get
127.0.0.1 refused to connect.
your help in resolving this will be highly appriciated.