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 2021/09/30 00:49:17 UTC

[GitHub] [pulsar] Anonymitaet commented on a change in pull request #11763: [Pulsar-client] Allow us to easily get a mapping of brokers to partitioned topics

Anonymitaet commented on a change in pull request #11763:
URL: https://github.com/apache/pulsar/pull/11763#discussion_r718977675



##########
File path: site2/docs/admin-api-topics.md
##########
@@ -833,6 +833,40 @@ String topic = "persistent://my-tenant/my-namespace/my-topic";
 admin.lookup().lookupDestination(topic);
 ```
 
+<!--END_DOCUSAURUS_CODE_TABS-->
+
+### Lookup of partitioned topic
+
+You can locate the broker URL of each partitioned topics which is serving the given topic in the following ways.
+
+<!--DOCUSAURUS_CODE_TABS-->
+<!--pulsar-admin-->
+```shell
+$ pulsar-admin topics partitioned-lookup \
+  persistent://test-tenant/ns1/my-topic \
+
+  "persistent://test-tenant/ns1/my-topic-partition-0   pulsar://localhost:6650"
+  "persistent://test-tenant/ns1/my-topic-partition-1   pulsar://localhost:6650"
+  "persistent://test-tenant/ns1/my-topic-partition-2   pulsar://localhost:6650"
+  "persistent://test-tenant/ns1/my-topic-partition-3   pulsar://localhost:6650"
+```
+
+<!--Java-->
+```java
+String topic = "persistent://my-tenant/my-namespace/my-topic";
+admin.lookup().lookupPartitionedTopic(topic);
+```
+
+Lookup the partitioned topics sort by broker URL

Review comment:
       ```suggestion
   Lookup the partitioned topics sorted by broker URL
   ```
   Do you intend to mean this?

##########
File path: site2/docs/admin-api-topics.md
##########
@@ -833,6 +833,40 @@ String topic = "persistent://my-tenant/my-namespace/my-topic";
 admin.lookup().lookupDestination(topic);
 ```
 
+<!--END_DOCUSAURUS_CODE_TABS-->
+
+### Lookup of partitioned topic
+
+You can locate the broker URL of each partitioned topics which is serving the given topic in the following ways.

Review comment:
       ```suggestion
   You can locate the broker URL of each partitioned topic which is serving the given topic in the following ways.
   ```




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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org