Thursday, January 09, 2014

Hue - CherryPy or Spawning web server

Hue includes two web servers, the CherryPy web server and the Spawning web server (configurable). Hue 2.2 defaults to using the Spawning web server, which is necessary for the Shell application. Spawning web server is multi-threaded, so you can use python threading support. The "runserver_plus" (CherryPY server) is single-threaded.

To switch from spawning server to CherryPy, uncomment "## use_cherrypy_server = false" and set it to true in your hue.ini file. This file is located at "/etc/hue/hue.ini" or "/opt/cloudera/parcels/CDH/etc/hue/hue.ini", then restart hue process.

# netstat -atnp | grep 8888
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LISTEN      11028/python2.6    
tcp      571      0 10.6.70.2:8888              10.8.2.6:47536              ESTABLISHED 11140/python2.6    
tcp        0      0 10.6.70.2:8888              10.8.2.10:56209             ESTABLISHED 11140/python2.6    
tcp        0      0 10.6.70.2:8888              10.8.2.6:47566              ESTABLISHED 11140/python2.6    
tcp        0      0 10.6.70.2:8888              10.8.2.6:47565              ESTABLISHED 11140/python2.6    
tcp        0      0 10.6.70.2:8888              10.8.2.6:47564              ESTABLISHED 11140/python2.6    
tcp        0      0 10.6.70.2:8888              10.8.2.10:56214             ESTABLISHED 11140/python2.6    
tcp        0      0 10.6.70.2:8888              10.8.2.10:56213             ESTABLISHED 11140/python2.6    
tcp        0      0 10.6.70.2:8888              10.8.2.6:47563              ESTABLISHED 11140/python2.6    
tcp        0      0 10.6.70.2:8888              10.8.2.6:47558              ESTABLISHED 11140/python2.6

2 comments:

Unknown said...

Nice post! Notice that Spawning server was entirely replaced by CherryPy in Hue 3 for a better stability.

Unknown said...

Nice post! Notice that Spawning server was entirely replaced by CherryPy in Hue 3 for a better stability.