Reply
New Contributor
Posts: 2
Registered: ‎02-09-2017
Accepted Solution

Set values in hue.ini from a Director script

Hi there,

I would like to set a Hue configuration value automatically at cluster instantiation, through my Cloudera Director configuration file. 

I guess I could write a post-creation script that finds the correct hue.ini file, modify it and restart Hue, but isn't there a simpler solution to do it ?

The configuration I would like to set is :

 

[desktop]
allowed_hosts=*

Thank you very much.

Cloudera Employee
Posts: 47
Registered: ‎10-14-2014

Re: Set values in hue.ini from a Director script

Funny enough, I actually just ran into this myself. You should be able to
do this by setting this hue_service_safety_valve service level config for
Hue. If you're using a config file:

cluster {
....
configs {
....
HUE: {
hue_service_safety_valve: """
[desktop]
allowed_hosts=*
"""
}
}
....
}

Note that I haven't totally tested this myself yet, but I'll actually go
ahead and do this right after this reply and confirm.
Cloudera Employee
Posts: 47
Registered: ‎10-14-2014

Re: Set values in hue.ini from a Director script

Just a heads up -- can confirm that this does indeed do the trick!
Highlighted
New Contributor
Posts: 2
Registered: ‎02-09-2017

Re: Set values in hue.ini from a Director script

Indeed, thank you very much ! :)

Announcements