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.

HA of zookeeper rest service using rest_url in hue.ini

HA of zookeeper rest service using rest_url in hue.ini

Explorer

Hello,

 

I started 3 zookeeper rest service one on each zookeeper node of a quoram and configured the same in hue.ini. When I start hue service I get below mentioend error. 

 

Question : 

1) Do we support configuring multiple rest url for zookeeper in hue.ini in rest_url (looking at the code, I guess we don't) ?
2) If answer to question 1 is no, and if we have to configure hue.ini for ha (high availability) of zookeeper rest service,what is the suggestive way to do that ?

 

Error at hue ui while viewing Znode hierarchy:

====================================

Server Error (500)

 

Error in runcpserver.log 

==================

processing exception: <urlopen error unknown url type: ['http>: Traceback (most recent call last):

 

Here is my hue.ini settings for the zookeeper:

==================================

[[[default]]]
host_ports=blitzhbase02-mnds4-1-crd.eng.sfdc.net:2181,blitzhbase02-mnds3-1-crd.eng.sfdc.net:2181,blitzhbase02-dnds2-2-crd.eng.sfdc.net:2181

 

rest_url=http://blitzhbase02-mnds4-1-crd.eng.sfdc.net:9998,http://blitzhbase02-mnds3-1-crd.eng.sfdc.net:9998,...

 

##principal_name=zookeeper

3 REPLIES 3

Re: HA of zookeeper rest service using rest_url in hue.ini

It is not supported, I created https://issues.cloudera.org/browse/HUE-3441
but the team is not focusing on ZooKeeper for now.

Note that
https://issues.cloudera.org/browse/HUE-2724
might help

Re: HA of zookeeper rest service using rest_url in hue.ini

Explorer

Thanks Romain for the reply.

 

Will keeping the rest services behind the balancer and configuring balancer as rest_url in hue.ini work for the HA of rest services for Hue ?

 

 

Highlighted

Re: HA of zookeeper rest service using rest_url in hue.ini

If the balancer picks the active API, it should work as it is stateless on
the Hue side