david-streamlio opened a new issue #10109:
URL: https://github.com/apache/pulsar/issues/10109
**Is your feature request related to a problem? Please describe.**
We are unable to create BatchSource connectors using the Pulsar Admin CLI,
as there is no way to provide the batch source configuration.
For example, the following command will fail with an error that states
`ource class
org.apache.pulsar.io.batchdatagenerator.BatchDataGeneratorPushSource implements
org.apache.pulsar.io.core.BatchSource but batch source source config is not
specified`
`/pulsar/bin/pulsar-admin sources create --name
test-batch-push-source-jqjblqme --destinationTopicName
test-batch-push-source-input-muikfaqf --archive
/pulsar/examples/pulsar-io-batch-data-generator.jar --classname
org.apache.pulsar.io.batchdatagenerator.BatchDataGeneratorPushSource
--source-config {"batchSourceConfig" : {"discoveryTriggererClassName" :
"org.apache.pulsar.io.batchdiscovery.ImmediateTriggerer"}}`
**Describe the solution you'd like**
Add a --batch-source-config switch to the Pulsar Admin Source API that is
similar to the existing --source-config switch. This will allow us to specify
these properties
**Describe alternatives you've considered**
none
**Additional context**
N/A
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]