You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by Thomas Weise <th...@gmail.com> on 2015/03/11 16:41:45 UTC
Reading properties from appConfig.json
Hello,
Is there an example on how to read component properties from appConfig.json
from the agent Python script.
Our current code to read the config is here:
https://github.com/DataTorrent/koya/blob/master/koya-slider-package/package/scripts/params.py
And we would like to read the Kafka broker.id from the per broker config
block rather than flatten it in global scope, as we currently do:
https://github.com/DataTorrent/koya/blob/master/koya-slider-package/appConfig-default.json
It would then look like this:
"components": {
"BROKER0": {
"broker.id" "0"
},
"BROKER1": {
"broker.id": "1"
},
"slider-appmaster": {
"jvm.heapsize": "256M"
}
}
Thanks,
Thomas