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": "/usr/lib/jvm/java-7-oracle/",
"package_list": "files/app.tgz",
"agent.conf": "/user/siyuan/agent/conf/agent.ini",
"site.global.app_user": "siyuan",
"site.global.app_root":
"${AGENT_WORK_ROOT}/app/install/kafka_2.10-0.8.1.1",
"site.global.app_install_dir": "${AGENT_WORK_ROOT}/app/install",
"site.global.pid_file": "${AGENT_WORK_ROOT}/app/run/app.pid",
},
"components": {
"COMPONENT1": {
*"mykey": "myvalue"*
},
"slider-appmaster": {
"jvm.heapsize": "256M"
}
}
}
Is it able to make the component1 read the value for *mykey* ?
Best,
Siyuan
On Mon, Nov 10, 2014 at 4:15 PM, Ted Yu <[email protected]> wrote:
> 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, [email protected] <[email protected]>
> wrote:
>
> > 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, [email protected] <[email protected]>
> > wrote:
> >
> > > Hi guys,
> > >
> > > Is there an example of component configuration? Is there a way to give
> > > different value to same property for different instances?
> > >
> > > Siyuan
> > >
> >
>