Skip to content

Commit 262c653

Browse files
authoredJan 25, 2022
[Doc] add explanations for setting bookie rack name (#13913)
* [Doc] add explanations for setting bookie rack name * update * update * update * update
1 parent 5b39913 commit 262c653

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 

‎pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdBookies.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,13 @@ private class UpdateBookie extends CliCommand {
8585
description = "Bookie address (format: `address:port`)", required = true)
8686
private String bookieAddress;
8787

88-
@Parameter(names = { "-r", "--rack" }, description = "Bookie rack name", required = true)
88+
@Parameter(names = { "-r", "--rack" }, description = "Bookie rack name. "
89+
+ "If you set a bookie rack name to slash (/) "
90+
+ "or an empty string (\"\"): "
91+
+ "if you use Pulsar earlier than 2.7.5, 2.8.3, and 2.9.2, "
92+
+ "an an exception is thrown; "
93+
+ "if you use Pulsar later than 2.7.5, 2.8.3, and 2.9.2, "
94+
+ "it falls back to /default-rack or /default-region/default-rack.", required = true)
8995
private String bookieRack;
9096

9197
@Parameter(names = { "--hostname" }, description = "Bookie host name", required = false)

‎site2/docs/administration-isolation.md

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ bin/pulsar-admin namespaces set-bookie-affinity-group public/default \
7373
--primary-group group-bookie1
7474
```
7575

76+
> **Note**
77+
>
78+
> Do not set a bookie rack name to slash (`/`) or an empty string (`""`) if you use Pulsar earlier than 2.7.5, 2.8.3, and 2.9.2. For the bookie rack name restrictions, see [pulsar-admin bookies set-bookie-rack](https://pulsar.apache.org/tools/pulsar-admin/).
79+
7680
<!--REST API-->
7781

7882
[POST /admin/v2/namespaces/{tenant}/{namespace}/persistence/bookieAffinity](https://pulsar.apache.org/admin-rest-api/?version=master&apiversion=v2#operation/setBookieAffinityGroup)

0 commit comments

Comments
 (0)
Please sign in to comment.