You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/03/16 15:10:35 UTC

[GitHub] [pulsar] jiazhai commented on issue #6536: create partition topic by function

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:
users@infra.apache.org


With regards,
Apache Git Services