Support Questions

Find answers, ask questions, and share your expertise

Set values in hue.ini from a Director script

avatar
Explorer

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.

1 ACCEPTED SOLUTION

avatar
Expert Contributor
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.

View solution in original post

3 REPLIES 3

avatar
Expert Contributor
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.

avatar
Expert Contributor
Just a heads up -- can confirm that this does indeed do the trick!

avatar
Explorer

Indeed, thank you very much ! 🙂