Re: How to add property to configuration file for specific version ?

2016-01-13 Thread Mithun Mathew
Hi Jeff What type of property file are you referring to? Something with the extension .properties? Regards Matt On Tue, Jan 12, 2016 at 7:57 PM, Jeff Zhang wrote: > Hi Mithun, > > Is it supported for PropertyFile as well ? > > On Fri, Jan 8, 2016 at 12:56 AM, Mithun Mathew wrote: > > > This

Re: How to add property to configuration file for specific version ?

2016-01-12 Thread Jeff Zhang
BTW, what is the practice for adding/removing property in the new version of component ? I think it is very common for each component. Is there any example I can refer ? On Tue, Jan 12, 2016 at 7:57 PM, Jeff Zhang wrote: > Hi Mithun, > > Is it supported for PropertyFile as well ? > > On Fri, Jan

Re: How to add property to configuration file for specific version ?

2016-01-12 Thread Jeff Zhang
Hi Mithun, Is it supported for PropertyFile as well ? On Fri, Jan 8, 2016 at 12:56 AM, Mithun Mathew wrote: > This is one way to do it: > - Get the existing configurations, and assign a *copy *of it to a variable, > let's call it config_copy. > - Introduce the new parameter based on the version

Re: How to add property to configuration file for specific version ?

2016-01-08 Thread Mithun Mathew
This is one way to do it: - Get the existing configurations, and assign a *copy *of it to a variable, let's call it config_copy. - Introduce the new parameter based on the version, as a key:value pair into config_copy - Write it back to file using XmlConfig resource Refer: https://github.com/apach

How to add property to configuration file for specific version ?

2016-01-08 Thread Jeff Zhang
I want to add one new property for spark's spark-defaults.xml, but I only want it to be in the latest version. I try to add it in python code, but seem the ConfigDictionary is immutable. Another way I can think of is using template, but it seems too large change, and I afraid it may change the conf