sijie closed pull request #2157: #2156 - Documentation need to be updated for
Admin command to apply deduplication at namespace
URL: https://github.com/apache/incubator-pulsar/pull/2157
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/site/docs/latest/cookbooks/message-deduplication.md
b/site/docs/latest/cookbooks/message-deduplication.md
index 9a63264efe..ea6fa64385 100644
--- a/site/docs/latest/cookbooks/message-deduplication.md
+++ b/site/docs/latest/cookbooks/message-deduplication.md
@@ -36,21 +36,21 @@ Regardless of the value of `brokerDeduplicationEnabled`,
[enabling](#enabling) a
### Enabling message deduplication {#enabling}
-You can enable message deduplication on specific namespaces, regardless of the
the [default](#default) for the broker, using the [`pulsar-admin namespace
set-deduplication`](../../CliTools#pulsar-admin-namespace-set-deduplication)
command. You can use the `--enable`/`-e` flag and specify the namespace. Here's
an example:
+You can enable message deduplication on specific namespaces, regardless of the
the [default](#default) for the broker, using the [`pulsar-admin namespace
set-deduplication`](../../CliTools#pulsar-admin-namespace-set-deduplication)
command. You can use the `--enable`/`-e` flag and specify the namespace. Here's
an example with <tenant>/<namespace>:
```bash
$ bin/pulsar-admin namespaces set-deduplication \
- persistent://public/default/topic-1 \
+ public/default \
--enable # or just -e
```
### Disabling message deduplication {#disabling}
-You can disable message deduplication on a specific namespace using the same
method shown [above](#enabling), except using the `--disable`/`-d` flag
instead. Here's an example:
+You can disable message deduplication on a specific namespace using the same
method shown [above](#enabling), except using the `--disable`/`-d` flag
instead. Here's an example with <tenant>/<namespace>:
```bash
$ bin/pulsar-admin namespaces set-deduplication \
- persistent://public/default/topic-1 \
+ public/default \
--disable # or just -d
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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