Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to setup HUE UI for HDP 2.4.0

Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

@Suneet patil

Try to kill current hue service, then start testserver and try to access hue testserver using browser:

netstat -nap | grep 800

#copy pid

kill -9 [PID FROM PREVIOUS COMMAND]

/usr/lib/hue/build/env/bin/hue testserver

#ACCESS BROWSER ON PORT 8000

PS: don't try to run default hue for now. lets just see if test server runs ok.

Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

Explorer
Hi @ Guilherme Braccialli
[root@sandbox ~]# service hue status                                                                                                                 
supervisor (pid  7822) is running...                                                                                                                 
[root@sandbox ~]# netstat -nap | grep 8000                                                                                                           
tcp        0      0 0.0.0.0:8000                0.0.0.0:*                   LISTEN      7833/python2.6 


Please suggest should the update kill -9 [PID FROM PREVIOUS COMMAND]. Is my PID is 7822 or 7833
Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

Explorer

@Guilherme Braccialli,

[root@sandbox ~]# netstat -nap | grep 8000                                                  
tcp        0      0 0.0.0.0:8000                0.0.0.0:*                   LISTEN      7833/python2.6

In the above command i can see 0 0.0.0.0:8000 but im trying to access 127.0.0.1:8000.Should i update anything in hue/hue.ini about URL. Please suggest.
Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

Try to kill hue process (kill -9 7833), run hue testserver (/usr/lib/hue/build/env/bin/hue testserver) and then try to access hue from webbrowser.

Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

Explorer

@Guilherme Braccialli

im not able to locate hue.ini file, Please can you help me to find hue.ini file to update # Webserver listens

Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

Expert Contributor
@Suneet patil

Please try to access ui using elinks.

elinks http://127.0.0.1:8000/

We can confirm that service is running

Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

Explorer

@chennuri gouri shankar

Thanks for your reply. I have mentioned initaillyonly that when i try accessing Hue UI using http://127.0.0.1:8000/ i get

This site can’t be reached

127.0.0.1 refused to connect.

Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

Expert Contributor

Use elinks http://127.0.0.1:8000/ from command line and paste the output please

Re: Unable to setup HUE UI for HDP 2.4.0

Contributor

As in error log you provide you can see ERROR Error: That port is already in use.

it means that 8000 port is already in use.

locate hue.ini file and change the http port something else (port which is currently not in use)

# Webserver listens on this address and port #http_host=0.0.0.0 http_host=//127.0.0.1 http_port=8000

Highlighted

Re: Unable to setup HUE UI for HDP 2.4.0

Explorer

@Balkrishna Yadav

im not able to locate hue.ini file, Please can you help me to find hue.ini file to update # Webserver listens

Don't have an account?
Coming from Hortonworks? Activate your account here