File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
cn/docs/quickstart/hugegraph
en/docs/quickstart/hugegraph Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -200,10 +200,26 @@ task.scheduler_type=distributed
200200pd.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+
2032162 . 修改 HugeGraph-Server 的 ` rest-server.properties ` 配置:
204217
205218``` properties
206219usePD =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
213229usePD =true
214230restserver.url =http://127.0.0.1:8081
215231gremlinserver.url =http://127.0.0.1:8181
232+ pd.peers =127.0.0.1:8686
216233
217234rpc.server_host =127.0.0.1
218235rpc.server_port =8091
@@ -226,6 +243,7 @@ server.role=master
226243usePD =true
227244restserver.url =http://127.0.0.1:8082
228245gremlinserver.url =http://127.0.0.1:8182
246+ pd.peers =127.0.0.1:8686
229247
230248rpc.server_host =127.0.0.1
231249rpc.server_port =8092
Original file line number Diff line number Diff line change @@ -216,10 +216,26 @@ task.scheduler_type=distributed
216216pd.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+
219232Then enable PD discovery in `rest-server.properties` (required for every HugeGraph-Server node) :
220233
221234` ` ` properties
222235usePD=true
236+
237+ # If auth is needed
238+ # auth.authenticator=org.apache.hugegraph.auth.StandardAuthenticator
223239` ` `
224240
225241If 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):
229245usePD=true
230246restserver.url=http://127.0.0.1:8081
231247gremlinserver.url=http://127.0.0.1:8181
248+ pd.peers=127.0.0.1:8686
232249
233250rpc.server_host=127.0.0.1
234251rpc.server_port=8091
@@ -242,6 +259,7 @@ Node 2 (Worker node):
242259usePD=true
243260restserver.url=http://127.0.0.1:8082
244261gremlinserver.url=http://127.0.0.1:8182
262+ pd.peers=127.0.0.1:8686
245263
246264rpc.server_host=127.0.0.1
247265rpc.server_port=8092
You can’t perform that action at this time.
0 commit comments