mywgl commented on issue #3007:
URL: https://github.com/apache/hugegraph/issues/3007#issuecomment-4305983165

   @JisoLya 使用的就是utf-8的字符编码,上面提供的日志里面的中文都能正常显示出来的,我将提供修改过的配置,没修改过的我就发出来了配置如下:
   1.修改过的pd部分配置  pd/conf/application.yml :
   grpc:
     port: 8686
     # The service address of grpc needs to be changed to the actual local IPv4 
address when deploying.
     host: 192.168.100.30
   
   pd:
     # Storage path
     data-path: ./pd_data
     # The check cycle of automatic expansion regularly checks the number of 
partitions in each store and automatically balances the number of partitions
     patrol-interval: 1800
     # The minimum number of surviving store nodes, less than which the entire 
cluster is unavailable
     initial-store-count: 3
     # The initial store list, grpc IP: grpc port, the store in the list is 
automatically activated
     initial-store-list: 
192.168.100.30:8500,192.168.100.31:8500,192.168.100.32:8500
   
   raft:
     # The address of the local raft service
     address: 192.168.100.30:8610
     # The service address of the PD cluster
     peers-list: 192.168.100.30:8610,192.168.100.31:8610,192.168.100.32:8610
   
   
   
   
   2. store修改过的部分配置 :
   pdserver:
     # PD service address, multiple PD addresses separated by commas
     address: 192.168.100.30:8686,192.168.100.31:8686,192.168.100.32:8686
   
   management:
     metrics:
       export:
         prometheus:
           enabled: true
     endpoints:
       web:
         exposure:
           include: "*"
   
   grpc:
     # grpc service address
     host: 192.168.100.30
     port: 8500
     netty-server:
       max-inbound-message-size: 1000MB
   raft:
     # raft cache queue size
     disruptorBufferSize: 1024
     address: 192.168.100.30:8510
     max-log-file-size: 600000000000
     # Snapshot generation interval, in seconds
     snapshotInterval: 1800
   server:
     # rest service address
     port: 8520
   
   
   
   
   3. 4. server的配置3.1 rest-server.properties 部分配置:
   restserver.url=http://192.168.100.30:8844
   #restserver.enable_graphspaces_filter=false
   # gremlin server url, need to be consistent with host and port in 
gremlin-server.yaml
   gremlinserver.url=http://192.168.100.30:8182
   
   graphs=./conf/graphs
   
   # The maximum thread ratio for batch writing, only take effect if the 
batch.max_write_threads is 0
   batch.max_write_ratio=80
   batch.max_write_threads=0
   
   # configuration of arthas
   #arthas.telnet_port=8562
   #arthas.http_port=8561
   #arthas.ip=127.0.0.1
   #arthas.disabled_commands=jad
   
   # authentication configs
   auth.authenticator=org.apache.hugegraph.auth.StandardAuthenticator
   auth.graph_store=hugegraph
   
   # lightweight load balancing (TODO: legacy mode, remove soon)
   server.id=server-1
   server.role=master
   # use pd
   usePD=true
   
   
   
   
   3.2 gremlin-server.yaml 部分配置:
   host: 192.168.100.30
   port: 8182
   #这个文件最后增加下面的内容:
   authentication: {
     authenticator: org.apache.hugegraph.auth.StandardAuthenticator,
     authenticationHandler: org.apache.hugegraph.auth.WsAndHttpBasicAuthHandler,
     config: {tokens: conf/rest-server.properties}
   }
   
   
   3.3 hugegraph.properties 部分配置:
   gremlin.graph=org.apache.hugegraph.auth.HugeFactoryAuthProxy
   backend=hstore
   pd.peers=192.168.100.30:8686,192.168.100.31:8686,192.168.100.32:8686
   task.scheduler_type=distributed
   
   其他两个节点大部分是一样的就是需要单独的ip那里改成对应节点的ip而已了
   


-- 
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