-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] creating a new graph in a distributed cluster, I encountered the error: GraphFactory could not instantiate this Graph implementation [class org.apache.hugegraph.HugeFactory]. #2725
Comments
Hey there, @kaiizi! I'm here to help you with any bugs, questions, or contributions you have. Let me know how I can assist you! The error "GraphFactory could not instantiate this Graph implementation" typically indicates a configuration or dependency issue. Here are some steps to troubleshoot and resolve the problem:
If these steps do not resolve the issue, consider testing with a minimal configuration to isolate the problem, and gradually add complexity to identify the specific cause. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
master的hugegraph.properties配置如下,其他两个节点raft.endpoint ip为节点ip ` store=hugegraph raft.mode=true raft.endpoint=172.16.31.137:8091 search.text_analyzer=jieba jdbc.driver=com.mysql.cj.jdbc.Driver |
Please use 1.5.0 for the distributed cluster (the older/legacy version will be achieved soon) If u meet any problem in the latest version, please open a issue for it |
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label |
As far as I know, there is no official document for 1.5.0 on distributed clusters, do you have any plans? After I follow the wiki documentation, how do I dynamically add a distributed graph? According to the 1.3.0documentation, the rockdb graph has been inserted and is still only available at the current node。 |
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label |
Problem Type (问题类型)
other exception / error (其他异常报错)
Before submit
Environment (环境信息)
Your Question (问题描述)
参考https://github.com/apache/incubator-hugegraph/wiki/HugeGraph-Multi%E2%80%90Node-Deployment-Configuration 文档
使用1.3.0版本部署分布式集群,调master节点接口创建新图如下:
`curl --location 'http://172.16.31.137:8080/graphs/test1-mysql'
--header 'Content-Type: text/plain'
--data 'gremlin.graph=org.apache.hugegraph.HugeFactory
backend=mysql
serializer=mysql
store=mysql_test_3
jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://172.16.31.140:6446
jdbc.username=root
jdbc.password=_4-qmp_9aCH
jdbc.reconnect_max_times=3
jdbc.reconnect_interval=3
jdbc.ssl_mode=false
raft.mode=true
raft.path=./raft-log
raft.safe_read=true
raft.use_replicator_pipeline=true
raft.endpoint=172.16.31.137:8091
raft.group_peers=172.16.31.137:8091,172.16.31.138:8091,172.16.31.139:8091
raft.election_timeout=10000
raft.snapshot_interval=3600
raft.backend_threads=48
raft.read_index_threads=8
raft.snapshot_threads=4
raft.snapshot_parallel_compress=false
raft.snapshot_compress_threads=4
raft.snapshot_decompress_threads=4
raft.read_strategy=ReadOnlyLeaseBased
raft.queue_size=16384
raft.queue_publish_timeout=60
raft.apply_batch=1
raft.rpc_threads=80
raft.rpc_connect_timeout=5000
raft.rpc_timeout=60
raft.install_snapshot_rpc_timeout=36000
'`
报错:
{ "exception": "class java.lang.RuntimeException", "message": "GraphFactory could not instantiate this Graph implementation [class org.apache.hugegraph.HugeFactory]", "cause": "java.lang.reflect.InvocationTargetException" }
raft-log日志中未有报错信息;
如果不添加raft相关配置可以正常创建,但是其他节点无法查看对应新图,麻烦看下
Vertex/Edge example (问题点 / 边数据举例)
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
The text was updated successfully, but these errors were encountered: