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

[Doc] fix path inconsistency in code in stream load user guide doc (backport #43210) #43215

Merged
merged 2 commits into from
Mar 27, 2024
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: 2 additions & 2 deletions docs/en/loading/StreamLoad.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Note that in StarRocks some literals are used as reserved keywords by the SQL la

#### Prepare datasets

Use the CSV file format as an example. Log in to your local file system, and create two CSV files, `file1.csv` and `file2.csv`, in a specific storage location (for example, `/user/starrocks/`). Both files consist of three columns, which represent the user ID, user name, and user score in sequence.
Use the CSV file format as an example. Log in to your local file system, and create two CSV files, `file1.csv` and `file2.csv`, in a specific storage location (for example, `/home/disk1/business/`). Both files consist of three columns, which represent the user ID, user name, and user score in sequence.

- `file1.csv`

Expand Down Expand Up @@ -358,7 +358,7 @@ PROPERTIES("replication_num"="1");

#### Start a Broker Load

Run the following command to start a Broker Load job that loads data from all data files (`file1.csv` and `file2.csv`) stored in the `/user/starrocks/` path of your local file system to the StarRocks table `mytable`:
Run the following command to start a Broker Load job that loads data from all data files (`file1.csv` and `file2.csv`) stored in the `/home/disk1/business/` path of your local file system to the StarRocks table `mytable`:

```SQL
LOAD LABEL mydatabase.label_local
Expand Down
6 changes: 3 additions & 3 deletions docs/zh/loading/StreamLoad.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Broker Load 支持导入单个数据文件到单张表、导入多个数据文

#### 数据样例

以 CSV 格式的数据为例,登录本地文件系统,在指定路径(假设为 `/user/starrocks/`)下创建两个 CSV 格式的数据文件,`file1.csv` 和 `file2.csv`。两个数据文件都包含三列,分别代表用户 ID、用户姓名和用户得分,如下所示:
以 CSV 格式的数据为例,登录本地文件系统,在指定路径(假设为 `/home/disk1/business/`)下创建两个 CSV 格式的数据文件,`file1.csv` 和 `file2.csv`。两个数据文件都包含三列,分别代表用户 ID、用户姓名和用户得分,如下所示:

- `file1.csv`

Expand Down Expand Up @@ -359,7 +359,7 @@ PROPERTIES("replication_num"="1");

#### 提交导入作业

通过如下语句,把本地文件系统的 `/user/starrocks/` 路径下所有数据文件(`file1.csv` 和 `file2.csv`)的数据导入到目标表 `mytable`:
通过如下语句,把本地文件系统的 `/home/disk1/business/` 路径下所有数据文件(`file1.csv` 和 `file2.csv`)的数据导入到目标表 `mytable`:

```SQL
LOAD LABEL mydatabase.label_local
Expand Down Expand Up @@ -472,7 +472,7 @@ WHERE LABEL = "label_local";

1. 把 NAS 挂载到所有的 BE、FE 节点,同时保证所有节点的挂载路径完全一致。这样,所有 BE 可以像访问 BE 自己的本地文件一样访问 NAS。

2. 使用 Broker Load 导入数据。
2. 使用 Broker Load 导入数据。例如:

```SQL
LOAD LABEL test_db.label_nas
Expand Down
Loading