我在插件文件夹(应用程序和数据库)中删除以下jar后重新启动了我的服务器
neo4j-spatial-0.24-neo4j-3.1.1-server-plugin.jar
neo4j-spatial-0.24-neo4j-3.1.1.jar
我在尝试使用withinDistance
进行调用时收到错误There is no procedure with the name `spatial.withinDistance` registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
我所拥有的Neo4j的版本是3.2.2,在Windows上的版本相同,可以在数据库的插件文件夹中使用相同的jar。
(虽然我运行Spark和neo4j的其他代码在Mac上的Windows上不起作用,但计算机却很流行.smh)
调用dbms.procedures()结果:
╒═══════════════════════════════╤══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╤══════════════════════════════════════════════════════════════════════════════════════════╕
│"name" │"signature" │"description" │
╞═══════════════════════════════╪══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╪══════════════════════════════════════════════════════════════════════════════════════════╡
│"db.awaitIndex" │"db.awaitIndex(index :: STRING?, timeOutSeconds = 300 :: INTEGER?) :: VOID" │"Wait for an index to come online (for example: CALL db.awaitIndex(\":Person(name)\"))." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.constraints" │"db.constraints() :: (description :: STRING?)" │"List all constraints in the database." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.createLabel" │"db.createLabel(newLabel :: STRING?) :: VOID" │"Create a label" │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.createProperty" │"db.createProperty(newProperty :: STRING?) :: VOID" │"Create a Property" │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.createRelationshipType" │"db.createRelationshipType(newRelationshipType :: STRING?) :: VOID" │"Create a RelationshipType" │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.indexes" │"db.indexes() :: (description :: STRING?, state :: STRING?, type :: STRING?)" │"List all indexes in the database." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.labels" │"db.labels() :: (label :: STRING?)" │"List all labels in the database." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.propertyKeys" │"db.propertyKeys() :: (propertyKey :: STRING?)" │"List all property keys in the database." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.relationshipTypes" │"db.relationshipTypes() :: (relationshipType :: STRING?)" │"List all relationship types in the database." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.resampleIndex" │"db.resampleIndex(index :: STRING?) :: VOID" │"Schedule resampling of an index (for example: CALL db.resampleIndex(\":Person(name)\"))."│
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.resampleOutdatedIndexes" │"db.resampleOutdatedIndexes() :: VOID" │"Schedule resampling of all outdated indexes." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"db.schema" │"db.schema() :: (nodes :: LIST? OF NODE?, relationships :: LIST? OF RELATIONSHIP?)" │"Show the schema of the data." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.changePassword" │"dbms.changePassword(password :: STRING?) :: VOID" │"Change the current user's password. Deprecated by dbms.security.changePassword." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.components" │"dbms.components() :: (name :: STRING?, versions :: LIST? OF STRING?, edition :: STRING?)" │"List DBMS components and their versions." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.functions" │"dbms.functions() :: (name :: STRING?, signature :: STRING?, description :: STRING?)" │"List all user functions in the DBMS." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.listConfig" │"dbms.listConfig(searchString = :: STRING?) :: (name :: STRING?, description :: STRING?, value :: STRING?)" │"List the currently active config of Neo4j." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.procedures" │"dbms.procedures() :: (name :: STRING?, signature :: STRING?, description :: STRING?)" │"List all procedures in the DBMS." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.queryJmx" │"dbms.queryJmx(query :: STRING?) :: (name :: STRING?, description :: STRING?, attributes :: MAP?)" │"Query JMX management data by domain and name. For instance, \"org.neo4j:*\"" │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.security.changePassword" │"dbms.security.changePassword(password :: STRING?) :: VOID" │"Change the current user's password." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.security.createUser" │"dbms.security.createUser(username :: STRING?, password :: STRING?, requirePasswordChange = true :: BOOLEAN?) :: VOID"│"Create a new user." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.security.deleteUser" │"dbms.security.deleteUser(username :: STRING?) :: VOID" │"Delete the specified user." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.security.listUsers" │"dbms.security.listUsers() :: (username :: STRING?, flags :: LIST? OF STRING?)" │"List all local users." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.security.showCurrentUser"│"dbms.security.showCurrentUser() :: (username :: STRING?, flags :: LIST? OF STRING?)" │"Show the current user. Deprecated by dbms.showCurrentUser." │
├───────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
│"dbms.showCurrentUser" │"dbms.showCurrentUser() :: (username :: STRING?, flags :: LIST? OF STRING?)" │"Show the current user." │
└───────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────┘
答案 0 :(得分:3)
我认为neo4j-spatial-0.24-neo4j-3.1.1-server-plugin.jar应该足够放在那里,不需要放其他文件。
服务器重启后,您可以通过此调用查看注册过程:
CALL dbms.procedures()