You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "Ethereal-O (via GitHub)" <gi...@apache.org> on 2025/10/24 09:55:17 UTC
[PR] chore: add docker using / add load data methods [incubator-hugegraph-doc]
Ethereal-O opened a new pull request, #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423
## Purpose of the PR
- add docker using / add load data methods
* **Document**
* Optimized HugeGraph Vermeer Quick Start, added three deployment and operation plan explanations (Docker Compose, Docker Run, source code compilation) and common operation guidelines.
* Extended data loading instructions, supporting three loading modes: local files, HugeGraph, and HDFS, and providing corresponding request examples and parameter explanations.
* Update the description of computing tasks and output results to be consistent with multiple loading methods, and provide more complete examples and usage instructions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] chore: add docker using / add load data methods [incubator-hugegraph-doc]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423#discussion_r2533201461
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -16,6 +16,144 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量
### 1.2 运行方法
+1. **方案一:Docker Compose(推荐)**
+
+确保docker-compose.yaml存在于您的项目根目录中。如果没有,以下是一个示例:
+```yaml
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: '3.8'
+
+services:
+ vermeer-master:
+ image: hugegraph/vermeer
+ container_name: vermeer-master
+ volumes:
+ - ~/:/go/bin/config # Change here to your actual config path
Review Comment:
‼️ **Volume 映射路径错误 - 安全风险**
将 `~/` 映射到容器内部会暴露整个用户主目录,这是严重的安全问题。应该:
```suggestion
- ./config:/go/bin/config # 仅映射项目配置目录
```
或者明确指定配置文件路径,例如 `./vermeer-config:/go/bin/config`
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -16,6 +16,144 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量
### 1.2 运行方法
+1. **方案一:Docker Compose(推荐)**
+
+确保docker-compose.yaml存在于您的项目根目录中。如果没有,以下是一个示例:
+```yaml
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: '3.8'
+
+services:
+ vermeer-master:
+ image: hugegraph/vermeer
Review Comment:
‼️ **缺少端口映射配置**
Docker Compose 配置中没有暴露服务端口,用户无法从宿主机访问 Vermeer 服务(如 8688 端口)。需要添加:
```suggestion
vermeer-master:
image: hugegraph/vermeer
container_name: vermeer-master
ports:
- "8688:8688" # 根据实际配置的端口调整
volumes:
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] chore: add docker using / add load data methods [incubator-hugegraph-doc]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423#discussion_r2533205285
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -33,24 +171,79 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量
具体参数参考 Vermeer 参数列表文档。
-request 示例:
+vermeer提供三种加载方式:
+
+1. 从本地加载
+
+**request 示例:**
```javascript
POST http://localhost:8688/tasks/create
{
"task_type": "load",
"graph": "testdb",
"params": {
- "load.parallel": "50",
- "load.type": "local",
- "load.vertex_files": "{\"localhost\":\"data/twitter-2010.v_[0,99]\"}",
- "load.edge_files": "{\"localhost\":\"data/twitter-2010.e_[0,99]\"}",
- "load.use_out_degree": "1",
- "load.use_outedge": "1"
+ "load.parallel": "50",
+ "load.type": "local",
+ "load.vertex_files": "{\"localhost\":\"data/twitter-2010.v_[0,99]\"}",
+ "load.edge_files": "{\"localhost\":\"data/twitter-2010.e_[0,99]\"}",
+ "load.use_out_degree": "1",
+ "load.use_outedge": "1"
}
}
```
+2. 从hugegraph加载
+
+**request 示例:**
+
+⚠️ 安全警告:切勿在配置文件或代码中存储真实密码。请改用环境变量或安全的凭据管理系统。
+
+```javascript
+POST http://localhost:8688/tasks/create
+{
+ "task_type": "load",
+ "graph": "testdb",
+ "params": {
+ "load.parallel": "50",
+ "load.type": "hugegraph",
+ "load.hg_pd_peers": "[\"<your-hugegraph-ip>:8686\"]",
+ "load.hugegraph_name": "DEFAULT/hugegraph2/g",
+ "load.hugegraph_username": "admin",
+ "load.hugegraph_password": "xxxxx",
+ "load.use_out_degree": "1",
+ "load.use_outedge": "1"
+ }
+}
+```
+
+3. 从hdfs加载
+
+**request 示例:**
+
+```javascript
+POST http://localhost:8688/tasks/create
+{
+ "task_type": "load",
+ "graph": "testdb",
+ "params": {
+ "load.parallel": "50",
+ "load.type": "hdfs",
+ "load.hdfs_namenode": "name_node1:9000",
+ "load.hdfs_conf_path": "/path/to/conf",
Review Comment:
⚠️ **HDFS Kerberos 配置说明不完整**
HDFS加载示例中的Kerberos配置较为复杂,但缺少说明:
1. `load.krb_realm` 应该填写Kerberos realm,示例中的 "admin" 是错误的
2. `load.krb_name` 应该是principal名称,不是密码
3. 缺少参数含义说明
建议添加注释说明各参数的正确格式,例如:
- `load.krb_realm`: Kerberos域(如 EXAMPLE.COM)
- `load.krb_name`: Kerberos principal(如 user@EXAMPLE.COM)
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -66,13 +259,13 @@ POST http://localhost:8688/tasks/create
"graph": "testdb",
"params": {
"compute.algorithm": "pagerank",
- "compute.parallel":"10",
- "compute.max_step":"10",
- "output.type":"local",
- "output.parallel":"1",
- "output.file_path":"result/pagerank"
+ "compute.parallel": "10",
+ "compute.max_step": "10",
+ "output.type": "local",
+ "output.parallel": "1",
+ "output.file_path": "result/pagerank"
}
Review Comment:
🧹 **代码格式不一致**
JSON示例的缩进不一致,第267行的 `}` 前有制表符而不是空格。建议统一使用空格缩进:
```suggestion
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] chore: add docker using / add load data methods [incubator-hugegraph-doc]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423#discussion_r2533206447
##########
content/en/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -16,6 +16,146 @@ The framework's runtime configuration can be passed via command-line parameters
### 1.2 Running Method
+1. **Option 1: Docker Compose (Recommended)**
+
+Please ensure that `docker-compose.yaml` exists in your project root directory. If it doesn't, here is an example:
+
+```yaml
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: '3.8'
+
+services:
+ vermeer-master:
+ image: hugegraph/vermeer
+ container_name: vermeer-master
+ volumes:
Review Comment:
‼️ **英文版存在相同的安全和配置问题**
英文文档(`hugegraph-vermeer.md`)中也存在与中文版相同的问题:
1. Volume 映射 `~/` 存在安全风险
2. 缺少端口映射配置
3. 缺少配置目录结构说明
4. Kerberos配置示例有误
请同步修复英文版本中的这些问题。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] docs(computer): add docker using & data loading4vermeer [incubator-hugegraph-doc]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin merged PR #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] chore: add docker using / add load data methods [incubator-hugegraph-doc]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423#discussion_r2533202523
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -16,6 +16,144 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量
### 1.2 运行方法
+1. **方案一:Docker Compose(推荐)**
+
+确保docker-compose.yaml存在于您的项目根目录中。如果没有,以下是一个示例:
+```yaml
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: '3.8'
+
+services:
+ vermeer-master:
+ image: hugegraph/vermeer
+ container_name: vermeer-master
+ volumes:
+ - ~/:/go/bin/config # Change here to your actual config path
+ command: --env=master
+ networks:
+ vermeer_network:
+ ipv4_address: 172.20.0.10 # Assign a static IP for the master
+
+ vermeer-worker:
+ image: hugegraph/vermeer
+ container_name: vermeer-worker
+ volumes:
+ - ~/:/go/bin/config # Change here to your actual config path
+ command: --env=worker
+ networks:
+ vermeer_network:
+ ipv4_address: 172.20.0.11 # Assign a static IP for the worker
+
+networks:
+ vermeer_network:
+ driver: bridge
+ ipam:
+ config:
+ - subnet: 172.20.0.0/24 # Define the subnet for your network
+```
+
+修改 docker-compose.yaml
+- **Volume**:例如将两处 ~/:/go/bin/config 改为 /home/user/config:/go/bin/config(或您自己的配置目录)。
Review Comment:
⚠️ **静态IP配置说明不完整**
文档中使用了静态IP(`172.20.0.10`, `172.20.0.11`)但没有解释:
1. 为什么需要静态IP
2. 这些IP与配置文件中的设置如何对应
3. Worker 如何通过此IP连接到 Master
建议在第71-72行后添加说明:
```markdown
> **注意**: 静态IP用于确保 Worker 能稳定连接到 Master。请确保配置文件(如 `worker.yaml`)中的 `master` 地址设置为 `172.20.0.10:端口号`。
```
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -16,6 +16,144 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量
### 1.2 运行方法
+1. **方案一:Docker Compose(推荐)**
+
+确保docker-compose.yaml存在于您的项目根目录中。如果没有,以下是一个示例:
+```yaml
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: '3.8'
+
+services:
+ vermeer-master:
+ image: hugegraph/vermeer
+ container_name: vermeer-master
+ volumes:
+ - ~/:/go/bin/config # Change here to your actual config path
+ command: --env=master
+ networks:
+ vermeer_network:
+ ipv4_address: 172.20.0.10 # Assign a static IP for the master
+
+ vermeer-worker:
+ image: hugegraph/vermeer
+ container_name: vermeer-worker
+ volumes:
+ - ~/:/go/bin/config # Change here to your actual config path
+ command: --env=worker
+ networks:
+ vermeer_network:
+ ipv4_address: 172.20.0.11 # Assign a static IP for the worker
+
+networks:
+ vermeer_network:
+ driver: bridge
+ ipam:
+ config:
+ - subnet: 172.20.0.0/24 # Define the subnet for your network
+```
+
+修改 docker-compose.yaml
Review Comment:
⚠️ **配置目录结构说明缺失**
文档要求用户提供配置目录,但没有说明:
1. 配置目录应包含哪些文件(master.yaml? worker.yaml?)
2. 配置文件的基本结构或示例
3. 关键配置项(如端口、存储路径等)
建议在第71行前添加配置说明章节或链接到配置示例。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] chore: add docker using / add load data methods [incubator-hugegraph-doc]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423#discussion_r2533200898
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -16,6 +16,144 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量
### 1.2 运行方法
+1. **方案一:Docker Compose(推荐)**
+
+确保docker-compose.yaml存在于您的项目根目录中。如果没有,以下是一个示例:
+```yaml
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: '3.8'
Review Comment:
⚠️ **Docker Compose 版本兼容性问题**
`version: '3.8'` 在较新的 Docker Compose v2 中已不再需要(且被标记为过时)。建议:
```suggestion
# 移除 version 字段,Docker Compose v2 会自动处理
services:
```
参考: Docker Compose 规范不再需要显式版本声明。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] chore: add docker using / add load data methods [incubator-hugegraph-doc]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423#discussion_r2533203606
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -16,6 +16,144 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量
### 1.2 运行方法
+1. **方案一:Docker Compose(推荐)**
+
+确保docker-compose.yaml存在于您的项目根目录中。如果没有,以下是一个示例:
+```yaml
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: '3.8'
+
+services:
+ vermeer-master:
+ image: hugegraph/vermeer
+ container_name: vermeer-master
+ volumes:
+ - ~/:/go/bin/config # Change here to your actual config path
+ command: --env=master
+ networks:
+ vermeer_network:
+ ipv4_address: 172.20.0.10 # Assign a static IP for the master
+
+ vermeer-worker:
+ image: hugegraph/vermeer
+ container_name: vermeer-worker
+ volumes:
+ - ~/:/go/bin/config # Change here to your actual config path
+ command: --env=worker
+ networks:
+ vermeer_network:
+ ipv4_address: 172.20.0.11 # Assign a static IP for the worker
+
+networks:
+ vermeer_network:
+ driver: bridge
+ ipam:
+ config:
+ - subnet: 172.20.0.0/24 # Define the subnet for your network
+```
+
+修改 docker-compose.yaml
+- **Volume**:例如将两处 ~/:/go/bin/config 改为 /home/user/config:/go/bin/config(或您自己的配置目录)。
+- **Subnet**:根据实际情况修改子网IP。请注意,每个容器需要访问的端口在config文件中指定,具体请参照项目`config`文件夹下内容。
+
+在项目目录构建镜像并启动(或者先用 docker build 再 docker-compose up)
+
+```shell
+# 构建镜像(在项目根 vermeer 目录)
+docker build -t hugegraph/vermeer .
+
+# 启动(在 vermeer 根目录)
+docker-compose up -d
+# 或使用新版 CLI:
+# docker compose up -d
+```
+
+查看日志 / 停止 / 删除:
+
+```shell
+docker-compose logs -f
+docker-compose down
+```
+
+2. **方案二:通过 docker run 单独启动(手动创建网络并分配静态 IP)**
+
+确保CONFIG_DIR对Docker进程具有适当的读取/执行权限。
+
+构建镜像:
+
+```shell
+docker build -t hugegraph/vermeer .
+```
+
+创建自定义 bridge 网络(一次性操作):
+
+```shell
+docker network create --driver bridge \
+ --subnet 172.20.0.0/24 \
+ vermeer_network
+```
+
+运行 master(调整 CONFIG_DIR 为您的绝对配置路径,可以根据实际情况调整IP):
+
+```shell
+CONFIG_DIR=/home/user/config
+
+docker run -d \
Review Comment:
‼️ **docker run 命令缺少端口映射**
与 Docker Compose 类似,docker run 命令也没有映射端口,导致无法访问服务。需要添加 `-p` 参数:
```suggestion
docker run -d \
--name vermeer-master \
--network vermeer_network --ip 172.20.0.10 \
-p 8688:8688 \
-v ${CONFIG_DIR}:/go/bin/config \
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] chore: add docker using / add load data methods [incubator-hugegraph-doc]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #423:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/423#discussion_r2533204289
##########
content/cn/docs/quickstart/computing/hugegraph-vermeer.md:
##########
@@ -33,24 +171,79 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量
具体参数参考 Vermeer 参数列表文档。
-request 示例:
+vermeer提供三种加载方式:
+
+1. 从本地加载
+
+**request 示例:**
```javascript
POST http://localhost:8688/tasks/create
{
"task_type": "load",
"graph": "testdb",
"params": {
- "load.parallel": "50",
- "load.type": "local",
- "load.vertex_files": "{\"localhost\":\"data/twitter-2010.v_[0,99]\"}",
- "load.edge_files": "{\"localhost\":\"data/twitter-2010.e_[0,99]\"}",
- "load.use_out_degree": "1",
- "load.use_outedge": "1"
+ "load.parallel": "50",
+ "load.type": "local",
+ "load.vertex_files": "{\"localhost\":\"data/twitter-2010.v_[0,99]\"}",
+ "load.edge_files": "{\"localhost\":\"data/twitter-2010.e_[0,99]\"}",
+ "load.use_out_degree": "1",
+ "load.use_outedge": "1"
}
}
```
+2. 从hugegraph加载
Review Comment:
⚠️ **密码安全提示位置不当**
安全警告应该放在示例代码之前,而不是之后,以便用户在看到密码字段前就意识到安全问题。建议调整顺序:
```suggestion
2. 从hugegraph加载
⚠️ 安全警告:切勿在配置文件或代码中存储真实密码。请改用环境变量或安全的凭据管理系统。
**request 示例:**
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org