Re: Q: How to define component configuration?

2014-11-13 Thread hsy...@gmail.com
https://issues.apache.org/jira/browse/SLIDER-648 created. Thanks! On Tue, Nov 11, 2014 at 5:32 PM, Sumit Mohanty sumit.moha...@gmail.com wrote: components: { COMPONENT1: { *mykey: myvalue* }, This is not wired up in the AgentProviderService to send to the agents. So as a

Re: Q: How to define component configuration?

2014-11-11 Thread Steve Loughran
that should be it. What happens each component gets the properties of component-level union global-level that is, everything that is global, extended with anything that is at the component level. If a component overrides the global value, that override is picked up It's essentially a form of

Re: Q: How to define component configuration?

2014-11-11 Thread hsy...@gmail.com
Thanks Steve, but I logged all the properties in params.py, I couldn't find any key named *mykey* *config = Script.get_config()* for key in config.keys(): print key: + key for key in config['global'].keys(): print key: + key Best On Tue, Nov 11, 2014 at 5:04 AM, Steve

Re: Q: How to define component configuration?

2014-11-11 Thread Sumit Mohanty
components: { COMPONENT1: { *mykey: myvalue* }, This is not wired up in the AgentProviderService to send to the agents. So as a work-around you may have to use something like global: { COMPONENT1.mykey: myvaluep, Can you file a JIRA to add support for reading component

Q: How to define component configuration?

2014-11-10 Thread hsy...@gmail.com
Hi guys, Is there an example of component configuration? Is there a way to give different value to same property for different instances? Siyuan

Re: Q: How to define component configuration?

2014-11-10 Thread hsy...@gmail.com
If I want to have several instances of some component. But I want to set some of the properties to different value for different instances. How can I do it? Thanks! Best, Siyuan On Mon, Nov 10, 2014 at 1:26 PM, hsy...@gmail.com hsy...@gmail.com wrote: Hi guys, Is there an example of

Re: Q: How to define component configuration?

2014-11-10 Thread Ted Yu
To my knowledge, there is no direct support for this. You can create different components, each with corresponding properties. Cheers On Mon, Nov 10, 2014 at 4:13 PM, hsy...@gmail.com hsy...@gmail.com wrote: If I want to have several instances of some component. But I want to set some of the

Re: Q: How to define component configuration?

2014-11-10 Thread hsy...@gmail.com
Thanks Ted, but back to my first question, how can you define component level property? in appConfig.json? I tried to define like this : { schema: http://example.org/specification/v2.0.0;, metadata: { }, global: { application.def: app-package-0.1.zip, java_home: