Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change quick start #1717

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions docs/gettingStarted/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ Quick deployment **is only suitable for local development**. Do not use this dep

## Use Docker for Quick Deployment

### Step 1: Create the docker-compose.yaml File
### Step 1: Create the docker-compose.yaml

Copy the following content into the docker-compose.yaml file, and replace the `DORIS_QUICK_START_VERSION` parameter with the specified version, such as `3.0.1`.
Copy the following content into the docker-compose.yaml file, and replace the `DORIS_QUICK_START_VERSION` parameter with the specified version, such as `3.0.4`.

```text
```yaml
version: "3"
services:
fe:
image: apache/doris.fe-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-fe-${DORIS_QUICK_START_VERSION}
hostname: fe
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
- FE_ID=1
network_mode: host
be:
image: apache/doris.be-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-be-${DORIS_QUICK_START_VERSION}
hostname: be
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
Expand All @@ -71,7 +71,7 @@ Start the cluster using the docker-compose command.
docker-compose -f ./docker-compose.yaml up -d
```

### Step 3: Connect to the cluster using MySQL client and check the cluster status
### Step 3: Check the cluster status

```sql
## Check the FE status to ensure that both the Join and Alive columns are true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ under the License.

## 使用 Docker 快速部署

### 第 1 步:创建 docker-compose.yaml 文件
### 第 1 步:创建 docker-compose.yaml

复制以下内容到 docker-compose.yaml,替换 DORIS_QUICK_START_VERSION 参数为指定版本,如 `3.0.1`。
复制以下内容到 docker-compose.yaml,替换 DORIS_QUICK_START_VERSION 参数为指定版本,如 `3.0.4`。

```text
```yaml
version: "3"
services:
fe:
image: apache/doris.fe-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-fe-${DORIS_QUICK_START_VERSION}
hostname: fe
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
- FE_ID=1
network_mode: host
be:
image: apache/doris.be-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-be-${DORIS_QUICK_START_VERSION}
hostname: be
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
Expand All @@ -71,7 +71,7 @@ services:
docker-compose -f ./docker-compose.yaml up -d
```

### 第 3 步:使用 MySQL 客户端连接集群,并检查集群状态
### 第 3 步:检查集群状态

```sql
## 检查 FE 状态,确定 Join 与 Alive 列都为 true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,32 @@ under the License.

## 使用 Docker 快速部署

### 第 1 步:创建 docker-compose.yaml 文件
### 第 1 步:调整宿主机环境变量

通过以下命令,调整宿主机的环境变量:

```bash
ulimit -n 65536
swapoff -a
sysctl -w vm.max_map_count=2000000
```

### 第 2 步:创建 docker-compose.yaml

复制以下内容到 docker-compose.yaml,替换 DORIS_QUICK_START_VERSION 参数为指定版本,如 `2.1.7`。

```text
```yaml
version: "3"
services:
fe:
image: apache/doris.fe-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-fe-${DORIS_QUICK_START_VERSION}
hostname: fe
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
- FE_ID=1
network_mode: host
be:
image: apache/doris.be-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-be-${DORIS_QUICK_START_VERSION}
hostname: be
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
Expand All @@ -63,15 +73,15 @@ services:
network_mode: host
```

### 第 2 步:启动集群
### 第 3 步:启动集群

使用 docker-compose 命令启动集群

```shell
docker-compose -f ./docker-compose.yaml up -d
```

### 第 3 步:使用 MySQL 客户端连接集群,并检查集群状态
### 第 4 步:检查集群状态

```sql
## 检查 FE 状态,确定 Join 与 Alive 列都为 true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ under the License.

## 使用 Docker 快速部署

### 第 1 步:创建 docker-compose.yaml 文件
### 第 1 步:创建 docker-compose.yaml

复制以下内容到 docker-compose.yaml,替换 DORIS_QUICK_START_VERSION 参数为指定版本,如 `3.0.1`。
复制以下内容到 docker-compose.yaml,替换 DORIS_QUICK_START_VERSION 参数为指定版本,如 `3.0.4`。

```text
```yaml
version: "3"
services:
fe:
image: apache/doris.fe-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-fe-${DORIS_QUICK_START_VERSION}
hostname: fe
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
- FE_ID=1
network_mode: host
be:
image: apache/doris.be-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-be-${DORIS_QUICK_START_VERSION}
hostname: be
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
Expand All @@ -71,7 +71,7 @@ services:
docker-compose -f ./docker-compose.yaml up -d
```

### 第 3 步:使用 MySQL 客户端连接集群,并检查集群状态
### 第 3 步:检查集群状态

```sql
## 检查 FE 状态,确定 Join 与 Alive 列都为 true
Expand Down
22 changes: 16 additions & 6 deletions versioned_docs/version-2.1/gettingStarted/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,32 @@ Quick deployment **is only suitable for local development**. Do not use this dep

## Use Docker for Quick Deployment

### Step 1: Create the docker-compose.yaml File
### Step 1: Set the Host Machine Environment Variables

Set the environment variables of the host machine using the following command:

```bash
ulimit -n 65536
swapoff -a
sysctl -w vm.max_map_count=2000000
```

### Step 2: Create the docker-compose.yaml

Copy the following content into the docker-compose.yaml file, and replace the `DORIS_QUICK_START_VERSION` parameter with the specified version, such as `2.1.7`.

```text
```yaml
version: "3"
services:
fe:
image: apache/doris.fe-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-fe-${DORIS_QUICK_START_VERSION}
hostname: fe
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
- FE_ID=1
network_mode: host
be:
image: apache/doris.be-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-be-${DORIS_QUICK_START_VERSION}
hostname: be
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
Expand All @@ -63,15 +73,15 @@ services:
network_mode: host
```

### Step 2:Start Cluster
### Step 3:Start Cluster

Start the cluster using the docker-compose command.

```shell
docker-compose -f ./docker-compose.yaml up -d
```

### Step 3: Connect to the cluster using MySQL client and check the cluster status
### Step 4: Check the cluster status

```sql
## Check the FE status to ensure that both the Join and Alive columns are true.
Expand Down
12 changes: 6 additions & 6 deletions versioned_docs/version-3.0/gettingStarted/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ Quick deployment **is only suitable for local development**. Do not use this dep

## Use Docker for Quick Deployment

### Step 1: Create the docker-compose.yaml File
### Step 1: Create the docker-compose.yaml

Copy the following content into the docker-compose.yaml file, and replace the `DORIS_QUICK_START_VERSION` parameter with the specified version, such as `3.0.1`.
Copy the following content into the docker-compose.yaml file, and replace the `DORIS_QUICK_START_VERSION` parameter with the specified version, such as `3.0.4`.

```text
```yaml
version: "3"
services:
fe:
image: apache/doris.fe-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-fe-${DORIS_QUICK_START_VERSION}
hostname: fe
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
- FE_ID=1
network_mode: host
be:
image: apache/doris.be-ubuntu:${DORIS_QUICK_START_VERSION}
image: apache/doris:doris-be-${DORIS_QUICK_START_VERSION}
hostname: be
environment:
- FE_SERVERS=fe1:127.0.0.1:9010
Expand All @@ -71,7 +71,7 @@ Start the cluster using the docker-compose command.
docker-compose -f ./docker-compose.yaml up -d
```

### Step 3: Connect to the cluster using MySQL client and check the cluster status
### Step 3: Check the cluster status

```sql
## Check the FE status to ensure that both the Join and Alive columns are true.
Expand Down