Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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 ! 🙂