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(如 [email protected])



##########
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to