Skip to content

Commit dceea2b

Browse files
committed
fix: fix graphs.md
1 parent 9de89d2 commit dceea2b

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

content/cn/docs/quickstart/hugegraph/hugegraph-server.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,26 @@ task.scheduler_type=distributed
200200
pd.peers=127.0.0.1:8686,127.0.0.1:8687,127.0.0.1:8688
201201
```
202202

203+
```properties
204+
# 简单示例(带鉴权)
205+
gremlin.graph=org.apache.hugegraph.auth.HugeFactoryAuthProxy
206+
207+
# 指定存储 hstore(必须)
208+
backend=hstore
209+
serializer=binary
210+
store=hugegraph
211+
212+
# pd config
213+
pd.peers=127.0.0.1:8686
214+
```
215+
203216
2. 修改 HugeGraph-Server 的 `rest-server.properties` 配置:
204217

205218
```properties
206219
usePD=true
220+
221+
# 若需要 auth
222+
# auth.authenticator=org.apache.hugegraph.auth.StandardAuthenticator
207223
```
208224

209225
如果配置多个 HugeGraph-Server 节点,需要为每个节点修改 `rest-server.properties` 配置文件,例如:
@@ -213,6 +229,7 @@ usePD=true
213229
usePD=true
214230
restserver.url=http://127.0.0.1:8081
215231
gremlinserver.url=http://127.0.0.1:8181
232+
pd.peers=127.0.0.1:8686
216233

217234
rpc.server_host=127.0.0.1
218235
rpc.server_port=8091
@@ -226,6 +243,7 @@ server.role=master
226243
usePD=true
227244
restserver.url=http://127.0.0.1:8082
228245
gremlinserver.url=http://127.0.0.1:8182
246+
pd.peers=127.0.0.1:8686
229247

230248
rpc.server_host=127.0.0.1
231249
rpc.server_port=8092

content/en/docs/quickstart/hugegraph/hugegraph-server.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,26 @@ task.scheduler_type=distributed
216216
pd.peers=127.0.0.1:8686,127.0.0.1:8687,127.0.0.1:8688
217217
```
218218

219+
```properties
220+
# Full example (with authentication)
221+
gremlin.graph=org.apache.hugegraph.auth.HugeFactoryAuthProxy
222+
223+
# Specify storage hstore
224+
backend=hstore
225+
serializer=binary
226+
store=hugegraph
227+
228+
# pd config
229+
pd.peers=127.0.0.1:8686
230+
```
231+
219232
Then enable PD discovery in `rest-server.properties` (required for every HugeGraph-Server node):
220233

221234
```properties
222235
usePD=true
236+
237+
# If auth is needed
238+
# auth.authenticator=org.apache.hugegraph.auth.StandardAuthenticator
223239
```
224240

225241
If configuring multiple HugeGraph-Server nodes, you need to modify the `rest-server.properties` configuration file for each node, for example:
@@ -229,6 +245,7 @@ Node 1 (Master node):
229245
usePD=true
230246
restserver.url=http://127.0.0.1:8081
231247
gremlinserver.url=http://127.0.0.1:8181
248+
pd.peers=127.0.0.1:8686
232249
233250
rpc.server_host=127.0.0.1
234251
rpc.server_port=8091
@@ -242,6 +259,7 @@ Node 2 (Worker node):
242259
usePD=true
243260
restserver.url=http://127.0.0.1:8082
244261
gremlinserver.url=http://127.0.0.1:8182
262+
pd.peers=127.0.0.1:8686
245263
246264
rpc.server_host=127.0.0.1
247265
rpc.server_port=8092

0 commit comments

Comments
 (0)