没有这样的ServerPlugin:GremlinPlugin
问题描述:
我想放一些数据到Neo4j
数据库使用python脚本。我认为bulbflow可以很简单的方法如何做到这一点。没有这样的ServerPlugin:GremlinPlugin
我有他们的主页和文档这个小脚本。
#!/usr/bin/python
from bulbs.neo4jserver import Graph
g = Graph()
james = g.vertices.create(name="James")
但是当我运行它,我得到这个错误:
Traceback (most recent call last):
File "./bulb.py", line 4, in <module>
james = g.vertices.create(name="James")
File "/usr/lib/python2.7/site-packages/bulbs/element.py", line 565, in create
resp = self.client.create_vertex(data, keys=_keys)
File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 424, in create_vertex
return self.create_indexed_vertex(data, index_name, keys=keys)
File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 1054, in create_indexed_vertex
return self.gremlin(script,params)
File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 384, in gremlin
return self.request.post(path, params)
File "/usr/lib/python2.7/site-packages/bulbs/rest.py", line 131, in post
return self.request(POST, path, params)
File "/usr/lib/python2.7/site-packages/bulbs/rest.py", line 186, in request
return self.response_class(http_resp, self.config)
File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 217, in __init__
self.handle_response(response)
File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 249, in handle_response
response_handler(response)
File "/usr/lib/python2.7/site-packages/bulbs/rest.py", line 39, in not_found
raise LookupError(http_resp)
LookupError: ({'status': '404', 'access-control-allow-origin': '*', 'content-type': 'application/json; charset=UTF-8', 'content-length': '833', 'server': 'Jetty(9.0.5.v20130815)'}, '{\n "message" : "No such ServerPlugin: \\"GremlinPlugin\\"",\n "exception" : "PluginLookupException",\n "fullname" : "org.neo4j.server.plugins.PluginLookupException",\n "stacktrace" : [ "org.neo4j.server.plugins.PluginManager.extension(PluginManager.java:124)", "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:165)", "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:312)", "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:134)", "java.lang.reflect.Method.invoke(Unknown Source)", "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139)", "org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)", "java.lang.Thread.run(Unknown Source)" ]\n}')
bulbflow
和Neo4j
根据http://bulbflow.com/download/正确安装。 Neo4j
以默认配置运行,我可以打开http://localhost:7474/
。
你能帮我解决这个问题吗?
谢谢FrostyX
答
用的Neo4j 2.0启动小鬼插件不再捆绑在一起。但是,您可以轻松地自行构建和安装,请参阅。
答
是的,正如@stefan所说,从Neo4j 2起,您必须在Neo4j Server上手动安装Gremlin Plugin。但是,您可以将Neo4j与TinkerPop Rexster服务器一起使用 - Rexster随附最新的Gremlin,而灯泡可与任一服务器一起使用。
看看...
- Rexster百科:https://github.com/tinkerpop/rexster/wiki
- Rexster下载:https://github.com/tinkerpop/rexster/releases
- 灯泡文档:http://bulbflow.com/api/bulbs/#id3
- TinkerPop有关概述:http://www.tinkerpopbook.com/