Skip to content

Commit

Permalink
fix(docs): replace pulsarctl in offload docs (apache#13494)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Shen <[email protected]>
  • Loading branch information
ericsyh authored Dec 27, 2021
1 parent 3d4ab9d commit 5129cda
Show file tree
Hide file tree
Showing 15 changed files with 120 additions and 120 deletions.
16 changes: 8 additions & 8 deletions site2/docs/tiered-storage-filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,13 @@ Execute the following commands in the repository where you download Pulsar tarba
1. Start Pulsar standalone.

```
./bin/pulsar standalone -a 127.0.0.1
bin/pulsar standalone -a 127.0.0.1
```

2. To ensure the data generated is not deleted immediately, it is recommended to set the [retention policy](https://pulsar.apache.org/docs/en/next/cookbooks-retention-expiry/#retention-policies), which can be either a **size** limit or a **time** limit. The larger value you set for the retention policy, the longer the data can be retained.

```
./bin/pulsarctl namespaces set-retention public/default --size 100M --time 2d
bin/pulsar-admin namespaces set-retention public/default --size 100M --time 2d
```

> **Tip**
Expand All @@ -408,13 +408,13 @@ Execute the following commands in the repository where you download Pulsar tarba
3. Produce data using pulsar-client.

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

4. The offloading operation starts after a ledger rollover is triggered. To ensure offload data successfully, it is recommended that you wait until several ledger rollovers are triggered. In this case, you might need to wait for a second. You can check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

**Output**
Expand All @@ -439,13 +439,13 @@ Execute the following commands in the repository where you download Pulsar tarba
5. Wait a second and send more messages to the topic.

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

6. Check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

**Output**
Expand Down Expand Up @@ -476,7 +476,7 @@ Execute the following commands in the repository where you download Pulsar tarba
7. Trigger the offloading operation manually using pulsarctl.

```
./bin/pulsarctl topic offload -s 0 public/default/fs-test
bin/pulsar-admin topics offload -s 0 public/default/fs-test
```

**Output**
Expand All @@ -491,7 +491,7 @@ Execute the following commands in the repository where you download Pulsar tarba
8. Check the ledger status using pulsarctl.

```
./bin/pulsarctl topic internal-info public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

**Output**
Expand Down
16 changes: 8 additions & 8 deletions site2/website-next/docs/tiered-storage-filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,15 +469,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar standalone -a 127.0.0.1
bin/pulsar standalone -a 127.0.0.1
```

2. To ensure the data generated is not deleted immediately, it is recommended to set the [retention policy](https://pulsar.apache.org/docs/en/next/cookbooks-retention-expiry/#retention-policies), which can be either a **size** limit or a **time** limit. The larger value you set for the retention policy, the longer the data can be retained.

```
./bin/pulsarctl namespaces set-retention public/default --size 100M --time 2d
bin/pulsar-admin namespaces set-retention public/default --size 100M --time 2d
```

Expand All @@ -491,15 +491,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

4. The offloading operation starts after a ledger rollover is triggered. To ensure offload data successfully, it is recommended that you wait until several ledger rollovers are triggered. In this case, you might need to wait for a second. You can check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down Expand Up @@ -528,15 +528,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

6. Check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down Expand Up @@ -571,7 +571,7 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsarctl topic offload -s 0 public/default/fs-test
bin/pulsar-admin topics offload -s 0 public/default/fs-test
```

Expand All @@ -590,7 +590,7 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsarctl topic internal-info public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,15 +460,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar standalone -a 127.0.0.1
bin/pulsar standalone -a 127.0.0.1
```

2. To ensure the data generated is not deleted immediately, it is recommended to set the [retention policy](https://pulsar.apache.org/docs/en/next/cookbooks-retention-expiry/#retention-policies), which can be either a **size** limit or a **time** limit. The larger value you set for the retention policy, the longer the data can be retained.

```
./bin/pulsarctl namespaces set-retention public/default --size 100M --time 2d
bin/pulsar-admin namespaces set-retention public/default --size 100M --time 2d
```

Expand All @@ -482,15 +482,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

4. The offloading operation starts after a ledger rollover is triggered. To ensure offload data successfully, it is recommended that you wait until several ledger rollovers are triggered. In this case, you might need to wait for a second. You can check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down Expand Up @@ -519,15 +519,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

6. Check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down Expand Up @@ -562,7 +562,7 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsarctl topic offload -s 0 public/default/fs-test
bin/pulsar-admin topics offload -s 0 public/default/fs-test
```

Expand All @@ -581,7 +581,7 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsarctl topic internal-info public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,15 +461,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar standalone -a 127.0.0.1
bin/pulsar standalone -a 127.0.0.1
```

2. To ensure the data generated is not deleted immediately, it is recommended to set the [retention policy](https://pulsar.apache.org/docs/en/next/cookbooks-retention-expiry/#retention-policies), which can be either a **size** limit or a **time** limit. The larger value you set for the retention policy, the longer the data can be retained.

```
./bin/pulsarctl namespaces set-retention public/default --size 100M --time 2d
bin/pulsar-admin namespaces set-retention public/default --size 100M --time 2d
```

Expand All @@ -483,15 +483,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

4. The offloading operation starts after a ledger rollover is triggered. To ensure offload data successfully, it is recommended that you wait until several ledger rollovers are triggered. In this case, you might need to wait for a second. You can check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down Expand Up @@ -520,15 +520,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

6. Check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down Expand Up @@ -563,7 +563,7 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsarctl topic offload -s 0 public/default/fs-test
bin/pulsar-admin topics offload -s 0 public/default/fs-test
```

Expand All @@ -582,7 +582,7 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsarctl topic internal-info public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,15 +461,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar standalone -a 127.0.0.1
bin/pulsar standalone -a 127.0.0.1
```

2. To ensure the data generated is not deleted immediately, it is recommended to set the [retention policy](https://pulsar.apache.org/docs/en/next/cookbooks-retention-expiry/#retention-policies), which can be either a **size** limit or a **time** limit. The larger value you set for the retention policy, the longer the data can be retained.

```
./bin/pulsarctl namespaces set-retention public/default --size 100M --time 2d
bin/pulsar-admin namespaces set-retention public/default --size 100M --time 2d
```

Expand All @@ -483,15 +483,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

4. The offloading operation starts after a ledger rollover is triggered. To ensure offload data successfully, it is recommended that you wait until several ledger rollovers are triggered. In this case, you might need to wait for a second. You can check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down Expand Up @@ -520,15 +520,15 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
bin/pulsar-client produce -m "Hello FileSystem Offloader" -n 1000 public/default/fs-test
```

6. Check the ledger status using pulsarctl.

```
./bin/pulsarctl topics internal-stats public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down Expand Up @@ -563,7 +563,7 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsarctl topic offload -s 0 public/default/fs-test
bin/pulsar-admin topics offload -s 0 public/default/fs-test
```

Expand All @@ -582,7 +582,7 @@ Execute the following commands in the repository where you download Pulsar tarba

```
./bin/pulsarctl topic internal-info public/default/fs-test
bin/pulsar-admin topics stats-internal public/default/fs-test
```

Expand Down
Loading

0 comments on commit 5129cda

Please sign in to comment.