Reply
Explorer
Posts: 10
Registered: ‎03-17-2016

HA of zookeeper rest service using rest_url in hue.ini

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

Cloudera Employee
Posts: 723
Registered: ‎07-30-2013

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
Explorer
Posts: 10
Registered: ‎03-17-2016

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

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 ?

 

 

Cloudera Employee
Posts: 723
Registered: ‎07-30-2013

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