Automatic High Availability and Load Balancing of Hue in Cloudera Manager

43 views
Skip to first unread message

J

unread,
Oct 24, 2016, 10:06:47 AM10/24/16
to Hue-Users
Can anyone please share step-by-step process for rollback to standalone Hue instance in a safe manner from Automatic High Availability and Load Balancing of Hue in Cloudera Manager.
Thank you.

Romain Rigaux

unread,
Oct 24, 2016, 12:57:30 PM10/24/16
to J, Hue-Users

On Mon, Oct 24, 2016 at 4:06 PM, J <joy.luv.c...@gmail.com> wrote:
Can anyone please share step-by-step process for rollback to standalone Hue instance in a safe manner from Automatic High Availability and Load Balancing of Hue in Cloudera Manager.
Thank you.

--
You received this message because you are subscribed to the Google Groups "Hue-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+unsubscribe@cloudera.org.

J

unread,
Oct 25, 2016, 6:02:15 AM10/25/16
to Hue-Users, joy.luv.c...@gmail.com
Thank you Romain.
Following that video I already implemented HA and LB, now I would like to understand rollback steps to revert to standalone Hue instance without HA and LB.
So here are few queries to revert without affecting multiple other services running on same host.

1. Do we need to stop Hue before rollback (as not needed during HA/LB implementation)?

2. Cloudera Manager->Status tab->select Hue->Instances tab->select HA/LB host->Actions for selected->Delete
will the above step delete the host with all services from Cluster or simply delete Hue role instance from that host?

Also please include if I missed any other steps.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.

Romain Rigaux

unread,
Oct 25, 2016, 6:31:07 AM10/25/16
to J, Hue-Users
You can just stop and delete the Load Balancer Role

To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+unsubscribe@cloudera.org.

J

unread,
Oct 26, 2016, 7:49:12 AM10/26/16
to Hue-Users, joy.luv.c...@gmail.com
Can we start Load Balancer on same Hue host? Below steps are performed;

1. LB role is added LB to same Hue host
2. Same Hue 'TLS/SSL Certificate' and 'TLS/SSL Private Key' File path is provided to LB configuration in Cloudera Manager
3. Started LB instance without any issue and found TCP listening for both Hue (8888) and LB (8889)
4. 
Started httpd service on the same host as well .

tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LISTEN      11086/python2.6

hue       11086  4.1  0.5 8345700 1344692 ?     Sl   Oct19 396:04 python2.6 /opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p1464.1349/lib/hue/build/env/bin/hue runcherrypyserver


tcp        0      0 0.0.0.0:8889                0.0.0.0:*                   LISTEN      26553/httpd

hue       26553  0.0  0.0 104360  5308 ?        S    11:16   0:00 /usr/sbin/httpd -f /var/run/cloudera-scm-agent/process/1188-hue-HUE_LOAD_BALANCER/httpd.conf -DFOREGROUND -DCLOUDERA_HTTPD_USE_SSL


However getting 'The site can't be reached (err_tunnel_connection_failed)' error while accessing LB web UI, Hue web UI is running fine on same browser.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.

J

unread,
Oct 26, 2016, 9:43:44 AM10/26/16
to Hue-Users, joy.luv.c...@gmail.com, rom...@cloudera.com
Hi Romain,

In addition to below details, checked if Hue and LB web UI is open from a different host as following.

bash-4.1# curl -Ik https://hue-web-ui.com:8888
HTTP/1.1 302 FOUND
Content-Length: 0
Content-Language: en
Vary: Accept-Language, Cookie
Location: https://hue-web-ui.com:8888/accounts/login/?next=/
Date: Wed, 26 Oct 2016 13:35:35 GMT
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=utf-8
audited: False
Server: CherryPy/3.1.2 WSGI Server

bash-4.1# curl -Ik https://hue-web-ui.com:8889
HTTP/1.1 302 FOUND
Date: Wed, 26 Oct 2016 13:19:49 GMT
Server: CherryPy/3.1.2 WSGI Server
Strict-Transport-Security: max-age=15768000
Content-Language: en
Vary: Accept-Language,Cookie
Location: https://hue-web-ui.com:8889/accounts/login/?next=/
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=utf-8
audited: False
Set-Cookie: ROUTEID=.hue-HUE_SERVER-1f092bfdedd9459d7398c32fc508850d; path=/

Thanks.

Romain Rigaux

unread,
Oct 26, 2016, 12:49:32 PM10/26/16
to J, Hue-Users
Yes, Hue server (8888) and the Load balancer (8889) can be on the same host. You can also have multiple LBs.

Reply all
Reply to author
Forward
0 new messages