jiazhai commented on issue #6536: create partition topic by function
URL: https://github.com/apache/pulsar/issues/6536#issuecomment-599589946
 
 
   @JKeyZ you can use 
[pulsar-admin](https://pulsar.apache.org/docs/en/pulsar-admin/#create-partitioned-topic)
 or rest api to create partitioned topic before starting a Pulsar functions. 
   Or, you could reset broker.conf for "auto create partition number"(this is 
currently broker level setting):
   ```
   
   # Enable topic auto creation if new producer or consumer connected (disable 
auto creation with value false)
   allowAutoTopicCreation=true
   
   # The type of topic that is allowed to be automatically 
created.(partitioned/non-partitioned)
   allowAutoTopicCreationType=partitioned < ===
   
   # Enable subscription auto creation if new consumer connected (disable auto 
creation with value false)
   allowAutoSubscriptionCreation=true. < ===
   
   # The number of partitioned topics that is allowed to be automatically 
created if allowAutoTopicCreationType is partitioned.
   defaultNumPartitions=1. < === default number you wanted.
   ```

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to