OS: Amazon Linux 2
Java: openjdk 17.0.8 2023-07-18 LTS
OpenJDK Runtime Environment Corretto-17.0.8.7.1 (build 17.0.8+7-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.8.7.1 (build 17.0.8+7-LTS, mixed mode, sharing)
Neo4j version: 5.11.0
GDS version: 2.4.4
Neo4j RPM installer and default file structure
debug.log
显示了一个很长的Failed to load .... from plugin jar
/var/lib/neo4j/plugins/neo4j-graph-data-science-2.4.4.jar: java.lang.NoClassDefFoundError: ....
列表(太长,无法包含完整的错误日志)
GDS Enterprise安装在辅助服务器上。
我尝试过使用graphicscience neo4j-graph-data-science-2.4.4.zip
和github neo4j-graph-data-science-2.4.4.jar
安装
- 在默认的NEO4J_HOME路径中,/var/lib/neo4j/plugins
- 解压时默认命名,neo4j-graph-data-science-2.4.4.jar
- 所有者:neo4j组:Neo4j
- 使用权限:0775
- 辅助服务器配置:
server.directories.plugins=/var/lib/neo4j/plugins
initial.dbms.default_primaries_count=1
initial.dbms.default_secondaries_count=1
server.default_listen_address=0.0.0.0
server.default_advertised_address= SERVER IP
dbms.cluster.discovery.endpoints= LIST OF ALL SERVERS IPS
server.bolt.enabled=true
server.http.enabled=true
initial.server.mode_constraint=SECONDARY
server.cluster.system_database_mode=SECONDARY
dbms.security.procedures.unrestricted=apoc.*,gds.*
dbms.security.procedures.allowlist=apoc.coll.*,apoc.load.*,apoc.*,gds.*
gds.enterprise.license_file=/var/lib/neo4j/licenses/gds_activation_key
dbms.routing.enabled=true
dbms.routing.default_router=SERVER
-primary/writer服务器配置:
server.directories.plugins=/var/lib/neo4j/plugins
initial.dbms.default_primaries_count=1
initial.dbms.default_secondaries_count=1
server.default_listen_address=0.0.0.0
server.default_advertised_address= SERVER IP
dbms.cluster.discovery.endpoints= SERVER IP
server.bolt.enabled=true
server.http.enabled=true
dbms.security.procedures.unrestricted=apoc.*
dbms.security.procedures.allowlist=apoc.coll.*,apoc.load.*,apoc.*
dbms.routing.enabled=true
dbms.routing.default_router=SERVER
我可以启动集群并在默认的http://IP:7474访问UI
当我运行RETURN gds.version();
时,我得到一个systax错误:Neo.ClientError.Statement.SyntaxError Unknown function 'gds.version' (line 1, column 8 (offset: 7)) "RETURN gds.version() AS gds.version()"
。
我可以使用SHOW SERVERS YIELD *;
确认群集配置我可以使用RETURN apoc.version();
确认APOC安装
这到底是怎么回事
参考文献:
- https://neo4j.com/docs/operations-manual/current/installation/linux/rpm/
- https://neo4j.com/docs/graph-data-science/current/installation/neo4j-server/
- https://neo4j.com/docs/graph-data-science/current/installation/installation-enterprise-edition/
- https://neo4j.com/docs/operations-manual/current/clustering/setup/analytics-cluster/
- https://neo4j.com/docs/graph-data-science/current/production-deployment/neo4j-cluster/
- https://neo4j.com/docs/operations-manual/current/clustering/setup/routing/#clustering-routing
1条答案
按热度按时间htrmnn0y1#
尝试在您的“主”服务器上修改
neo4j.conf
以允许GDS过程: