I am trying to automate some part of creating cluster everytime in my environment. I am trying to use the API post endpoint point /clusters but its not working.
All i get is the HTML back. please let me know if there is something i am doing wrong in getting this to work. This is important as we restart zookeepers and kafka a lot to clean it up and want to have kafka manager all the clusters when its restarted
Hey guys,
I am trying to automate some part of creating cluster everytime in my environment. I am trying to use the API post endpoint point /clusters but its not working.
Curl command:
curl -u test:test -H "Content-Type: application/json" --data @test.json -X POST http://kafka-manager:9000/clusters
test.json:
{ "name": "tresting", "version": "1.0.0", "curatorConfig": "zk01.test", "jmxEnabled": true, "pollConsumers": true, "filterConsumers": false, "jmxUser": "None", "jmxPass": "None", "jmxSsl": false, "tuning": "Option(kafkaManagerContext.get.getKafkaManager.defaultTuning)", "securityProtocol": "PLAINTEXT", "activeOffsetCacheEnabled": true, "logkafkaEnabled": false, "displaySizeEnabled": false }
All i get is the HTML back. please let me know if there is something i am doing wrong in getting this to work. This is important as we restart zookeepers and kafka a lot to clean it up and want to have kafka manager all the clusters when its restarted
Thanks,
Vignesh