Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Set values in hue.ini from a Director script

New Contributor

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

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

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.

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

New Contributor

Indeed, thank you very much ! 🙂

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.