You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: content/en/docs/quickstart/computing/hugegraph-vermeer.md
+150-7Lines changed: 150 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,94 @@ The framework's runtime configuration can be passed via command-line parameters
16
16
17
17
### 1.2 Running Method
18
18
19
+
1.**Option 1: Docker Compose (Recommended)**
20
+
21
+
Ensure docker-compose.yaml exists in your project directory. If not, you'll need to create one based on the project's docker-compose.yaml template.
22
+
23
+
Modify the volume in `docker-compose.yaml`, for example, changing the two instances of `~/:/go/bin/config` to `/home/user/config:/go/bin/config` (or your own configuration directory).
24
+
Build the image and start up in the project directory (or use `docker build` first, then `docker-compose up`)
25
+
26
+
```shell
27
+
# Build the image (in the project root 'vermeer' directory)
28
+
docker build -t hugegraph/vermeer .
29
+
30
+
# Start up (in the directory containing docker-compose.yaml)
31
+
docker-compose up -d
32
+
# Or use the new CLI:
33
+
# docker compose up -d
34
+
```
35
+
36
+
View logs / Stop / Remove:
37
+
38
+
```shell
39
+
docker-compose logs -f
40
+
docker-compose down
41
+
```
42
+
43
+
2.**Option 2: Start individually via `docker run` (Manually create network and assign static IP)**
44
+
45
+
Ensure the CONFIG_DIR has proper read/execute permissions for the Docker process (e.g., chmod 755 CONFIG_DIR).
46
+
47
+
Build the image:
48
+
49
+
```shell
50
+
docker build -t hugegraph/vermeer .
51
+
```
52
+
53
+
Create a custom bridge network (one-time operation):
54
+
55
+
```shell
56
+
docker network create --driver bridge \
57
+
--subnet 172.20.0.0/24 \
58
+
vermeer_network
59
+
```
60
+
61
+
Run master (Example maps container port 8080 to host port 8080; adjust `CONFIG_DIR` to your absolute configuration path):
62
+
63
+
```shell
64
+
CONFIG_DIR=/home/user/config
65
+
66
+
docker run -d \
67
+
--name vermeer-master \
68
+
--network vermeer_network --ip 172.20.0.10 \
69
+
-v ${CONFIG_DIR}:/go/bin/config \
70
+
-p 8080:8080 \
71
+
hugegraph/vermeer \
72
+
--env=master
73
+
```
74
+
75
+
Run worker:
76
+
77
+
```shell
78
+
docker run -d \
79
+
--name vermeer-worker \
80
+
--network vermeer_network --ip 172.20.0.11 \
81
+
-v ${CONFIG_DIR}:/go/bin/config \
82
+
hugegraph/vermeer \
83
+
--env=worker
84
+
```
85
+
86
+
View logs / Stop / Remove:
87
+
88
+
```shell
89
+
docker logs -f vermeer-master
90
+
docker logs -f vermeer-worker
91
+
92
+
docker stop vermeer-master vermeer-worker
93
+
docker rm vermeer-master vermeer-worker
94
+
95
+
# Remove the custom network (if needed)
96
+
docker network rm vermeer_network
97
+
```
98
+
99
+
3.**Option 3: Build from Source**
100
+
101
+
Build
102
+
103
+
```shell
104
+
go build
105
+
```
106
+
19
107
Enter the directory and input `./vermeer --env=master` or `./vermeer --env=worker01`.
20
108
21
109
## 2. Task Creation REST API
@@ -33,24 +121,79 @@ Available URLs are as follows:
33
121
34
122
Refer to the Vermeer parameter list document for specific parameters.
⚠️ Security Warning: Never store real passwords in configuration files or code. Use environment variables or a secure credential management system instead.
151
+
152
+
```javascript
153
+
POST http://localhost:8688/tasks/create
154
+
{
155
+
"task_type":"load",
156
+
"graph":"testdb",
157
+
"params": {
158
+
"load.parallel":"50",
159
+
"load.type":"hugegraph",
160
+
"load.hg_pd_peers":"[\"10.14.139.69:8686\"]",
161
+
"load.hugegraph_name":"DEFAULT/hugegraph2/g",
162
+
"load.hugegraph_username":"admin",
163
+
"load.hugegraph_password":"xxxxx",
164
+
"load.use_out_degree":"1",
165
+
"load.use_outedge":"1"
166
+
}
167
+
}
168
+
```
169
+
170
+
3. Load from HDFS
171
+
172
+
**Request Example:**
173
+
174
+
```javascript
175
+
POST http://localhost:8688/tasks/create
176
+
{
177
+
"task_type":"load",
178
+
"graph":"testdb",
179
+
"params": {
180
+
"load.parallel":"50",
181
+
"load.type":"hdfs",
182
+
"load.hdfs_namenode":"name_node",
183
+
"load.hdfs_conf_path":"path",
184
+
"load.krb_realm":"admin",
185
+
"load.krb_name":"xxxxx",
186
+
"load.krb_keytab_path":"path",
187
+
"load.krb_conf_path":"path",
188
+
"load.hdfs_use_krb":"1",
189
+
"load.vertex_files":"path",
190
+
"load.edge_files":"path",
191
+
"load.use_out_degree":"1",
192
+
"load.use_outedge":"1"
193
+
}
194
+
}
195
+
```
196
+
54
197
### 2.3 Output Computation Results
55
198
56
199
All Vermeer computation tasks support multiple result output methods, which can be customized: local, hdfs, afs, or hugegraph. Add the corresponding parameters under the params parameter when sending the request to take effect. When output.need_statistics is set to 1, it supports outputting statistical information of the computation results, which will be written in the interface task information. The statistical mode operators currently support "count" and "modularity," but only for community detection algorithms.
0 commit comments