Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

Commit e58caef

Browse files
cleared formats problems for dockerfiles of test guide
1 parent 08df78e commit e58caef

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

content/cn/docs/guides/toolchain-local-test.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ volumes:
219219
```
220220
221221
#### Hadoop 配置挂载
222+
`./config`文件夹用于配置挂载,请自行选择是否设置,需要与 `docker-compose.yml` 位于同一文件夹
223+
222224
📁 ./config/core-site.xml 内容:
223225

224226
```xml
@@ -333,7 +335,8 @@ grep auth.authenticator conf/rest-server.properties
333335

334336
# 第二步:设置密码
335337
bin/stop-hugegraph.sh
336-
echo -e "pa" | bin/init-store.sh # 此脚本初始化 HugeGraph 存储并设置默认用户凭据,包括用于鉴权测试的密码
338+
echo -e "${PASSWORD}" | bin/init-store.sh
339+
# 此脚本初始化 HugeGraph 存储并设置默认用户凭据,包括用于鉴权测试的密码,测试时默认使用 "pa"作为密码
337340
bin/start-hugegraph.sh
338341
```
339342

@@ -350,7 +353,8 @@ pwd # 应显示 .../hugegraph-toolchain
350353
curl -s http://localhost:8080/graphs
351354

352355
# 3. 如果使用鉴权,确认配置正确
353-
curl -u admin:<your_password> http://localhost:8080/graphs # 将 <your_password> 替换为实际密码
356+
curl -u admin:<your_password> http://localhost:8080/graphs
357+
# 将 <your_password> 替换为实际密码,默认测试密码是 "pa"
354358
```
355359

356360
```bash
@@ -378,7 +382,7 @@ mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true
378382

379383
#### 4.2.2 依赖服务安装 (根据测试类型选择)
380384

381-
按照 [部署测试环境](#3-部署测试环境) 部署测试环境 中的说明,启动 `hugegraph-server`,`Hadoop (HDFS)` (仅当运行 HDFS 测试时需要), `MySQL` (仅当运行 JDBC 测试时需要)。
385+
按照 [部署测试环境](#3-部署测试环境) 中的说明,启动 `hugegraph-server``Hadoop (HDFS)` (仅当运行 HDFS 测试时需要), `MySQL` (仅当运行 JDBC 测试时需要)。
382386

383387
<div style="text-align: center;">
384388
<img src="./../images/toolchain-test-mermaid-1.png" alt="HugeGraph Loader 测试流程图">
@@ -501,7 +505,7 @@ mvn install -pl hugegraph-client,hugegraph-spark-connector -am -Dmaven.javadoc.s
501505

502506
#### 4.4.2 依赖服务安装
503507

504-
按照 [部署测试环境](#3-部署测试环境) 部署测试环境 中的说明,启动 `hugegraph-server` 。
508+
按照 [部署测试环境](#3-部署测试环境) 中的说明,启动 `hugegraph-server`
505509

506510
#### 4.4.3 运行测试
507511

@@ -528,7 +532,7 @@ mvn install -pl hugegraph-client,hugegraph-tools -am -Dmaven.javadoc.skip=true -
528532

529533
#### 4.5.2 依赖服务安装
530534

531-
按照 [部署测试环境](#3-部署测试环境) 部署测试环境 中的说明,启动 `hugegraph-server` 。
535+
按照 [部署测试环境](#3-部署测试环境) 中的说明,启动 `hugegraph-server`
532536

533537
#### 4.5.3 运行测试
534538

content/en/docs/guides/toolchain-local-test.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ services:
138138
# - ./hugegraph-data:/opt/hugegraph/data
139139
healthcheck:
140140
test: ["CMD-SHELL", "curl -f http://localhost:8080/graphs || exit 1"]
141-
interval: 5s
141+
interval: 10s
142142
timeout: 3s
143143
retries: 5
144144
networks:
@@ -217,6 +217,8 @@ volumes:
217217
```
218218
219219
#### Hadoop Configuration Mounts
220+
The `./config` folder is used for configuration mounting. You can choose whether to set it up as needed.It needs to be in the same folder as `docker-compose.yml`.
221+
220222
📁 `./config/core-site.xml` content:
221223

222224
```xml
@@ -331,7 +333,8 @@ grep auth.authenticator conf/rest-server.properties
331333

332334
# Step 2: Set Password
333335
bin/stop-hugegraph.sh
334-
echo -e "pa" | bin/init-store.sh # This script initializes the HugeGraph store and sets default user credentials, including the password for authentication testing
336+
echo -e "${PASSWORD}" | bin/init-store.sh
337+
# This script initializes the HugeGraph store and sets default user credentials, including the password for authentication testing. The Default password value in test is "pa"
335338
bin/start-hugegraph.sh
336339
```
337340

@@ -348,7 +351,8 @@ pwd # Should display .../hugegraph-toolchain
348351
curl -s http://localhost:8080/graphs
349352

350353
# 3. If authentication is used, confirm the configuration is correct
351-
curl -u admin:<your_password> http://localhost:8080/graphs # replace <your_password> by actual password
354+
curl -u admin:<your_password> http://localhost:8080/graphs
355+
# replace <your_password> by actual password. The default test value is "pa".
352356
```
353357

354358
```bash

0 commit comments

Comments
 (0)