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

Reply via email to