Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Set values in hue.ini from a Director script

Solved Go to solution

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

Accepted Solutions
Highlighted

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

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.
3 REPLIES 3
Highlighted

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

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.

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

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

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

New Contributor

Indeed, thank you very much ! :)

Don't have an account?
Coming from Hortonworks? Activate your account here