Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

[2.0.4] dmctl: support read master addr from env (#691) #710

Merged
merged 1 commit into from
Jun 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions en/dmctl-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,17 @@ The command mode differs from the interactive mode in that you need to append th
> **Note:**
>
> + A dmctl command must be followed by only one task operation.
> + Starting from v2.0.4, DM supports reading the `-master-addr` parameter from the environment variable `DM_MASTER_ADDR`.

{{< copyable "shell-regular" >}}

```bash
./dmctl --master-addr 172.16.30.14:8261 start-task task.yaml
./dmctl --master-addr 172.16.30.14:8261 stop-task task
./dmctl --master-addr 172.16.30.14:8261 query-status

export DM_MASTER_ADD="172.16.30.14:8261"
./dmctl query-status
```

```
Expand Down
4 changes: 4 additions & 0 deletions zh/dmctl-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,17 @@ Use "dmctl [command] --help" for more information about a command.
> **注意:**
>
> + 一条 dmctl 命令只能跟一个任务操作
> + 从 v2.0.4 版本开始,支持从环境变量 (DM_MASTER_ADDR) 里读取 `-master-addr` 参数

{{< copyable "shell-regular" >}}

```bash
./dmctl --master-addr 172.16.30.14:8261 start-task task.yaml
./dmctl --master-addr 172.16.30.14:8261 stop-task task
./dmctl --master-addr 172.16.30.14:8261 query-status

export DM_MASTER_ADD="172.16.30.14:8261"
./dmctl query-status
```

```
Expand Down