This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2b1aec8 [docs] Modify the SSB document (#8101)
2b1aec8 is described below
commit 2b1aec871dfbd8142eacb0119056d041363fa0dd
Author: EmmyMiao87 <[email protected]>
AuthorDate: Fri Feb 18 11:14:20 2022 +0800
[docs] Modify the SSB document (#8101)
Add one step of preparation before load
---
docs/en/benchmark/star-schema-benchmark.md | 28 +++++++++++++++++++++------
docs/zh-CN/benchmark/star-schema-benchmark.md | 16 +++++++++++++++
2 files changed, 38 insertions(+), 6 deletions(-)
diff --git a/docs/en/benchmark/star-schema-benchmark.md
b/docs/en/benchmark/star-schema-benchmark.md
index fb28fee..11a59fc 100644
--- a/docs/en/benchmark/star-schema-benchmark.md
+++ b/docs/en/benchmark/star-schema-benchmark.md
@@ -82,23 +82,39 @@ Under the `-s 100` parameter, the generated data set size
is:
4. Import data
- 1. Import 4 dimension table data (customer, part, supplier and date)
+ 0. Prepare the 'doris-cluster.conf' file.
- Because the data volume of these 4 dimension tables is small, and the
import is simpler, we use the following command to import the data of these 4
tables first:
+ Before calling the load script, you need to write the FE's ip port
and other information in the `doris-cluster.conf` file.
+
+ 'doris-cluster.conf' in the same directory as
`load-dimension-data.sh`.
+
+ The contents of the file include FE's ip, HTTP port, user name,
password and the DB name of the data to be loaded:
+
+ ````
+ export FE_HOST="xxx"
+ export FE_HTTP_PORT="8030"
+ export USER="root"
+ export PASSWORD='xxx'
+ export DB="ssb"
+ ````
+
+ 1. Load 4 dimension table data (customer, part, supplier and date)
+
+ Because the data volume of these 4 dimension tables is small, and the
load is simpler, we use the following command to load the data of these 4
tables first:
`sh load-dimension-data.sh`
- 2. Import the fact table lineorder.
+ 2. Load the fact table lineorder.
- Import the lineorder table data with the following command:
+ Load the lineorder table data with the following command:
`sh load-fact-data.sh -c 5`
- `-c 5` means to start 5 concurrent threads to import (the default is
3). In the case of a single BE node, the import time of lineorder data
generated by `sh gen-ssb-data.sh -s 100 -c 100` using `sh load-fact-data.sh -c
3` is about 10 minutes. The memory overhead is about 5-6GB. If you turn on more
threads, you can speed up the import speed, but it will increase additional
memory overhead.
+ `-c 5` means to start 5 concurrent threads to import (the default is
3). In the case of a single BE node, the load time of lineorder data generated
by `sh gen-ssb-data.sh -s 100 -c 100` using `sh load-fact-data.sh -c 3` is
about 10 minutes. The memory overhead is about 5-6GB. If you turn on more
threads, you can speed up the load speed, but it will increase additional
memory overhead.
> Note: To get a faster import speed, you can add
`flush_thread_num_per_store=5` in be.conf and restart BE. This configuration
indicates the number of disk write threads for each data directory, and the
default is 2. Larger data can increase write data throughput, but may increase
IO Util. (Reference value: 1 mechanical disk, when the default is 2, the IO
Util during the import process is about 12%, when it is set to 5, the IO Util
is about 26%. If it is an SSD disk, it is almost 0) .
-5. Check the imported data
+5. Check the loaded data
```
select count(*) from part;
diff --git a/docs/zh-CN/benchmark/star-schema-benchmark.md
b/docs/zh-CN/benchmark/star-schema-benchmark.md
index ae7d608..6cf6516 100644
--- a/docs/zh-CN/benchmark/star-schema-benchmark.md
+++ b/docs/zh-CN/benchmark/star-schema-benchmark.md
@@ -82,6 +82,22 @@ sh gen-ssb-data.sh -s 100 -c 100
4. 导入数据
+ 0. 准备 'doris-cluster.conf' 文件。
+
+ 在调用导入脚本前,需要将 FE 的 ip 端口等信息写在 `doris-cluster.conf` 文件中。
+
+ 文件位置和 `load-dimension-data.sh` 平级。
+
+ 文件内容包括 FE 的 ip,HTTP 端口,用户名,密码以及待导入数据的 DB 名称:
+
+ ```
+ export FE_HOST="xxx"
+ export FE_HTTP_PORT="8030"
+ export USER="root"
+ export PASSWORD='xxx'
+ export DB="ssb"
+ ```
+
1. 导入 4 张维度表数据(customer, part, supplier and date)
因为这4张维表数据量较小,导入较简单,我们使用以下命令先导入这4表的数据:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]