Wednesday 15 April 2015

gremlin - neo4j 2.1.5 with bulbs -



gremlin - neo4j 2.1.5 with bulbs -

how can connect bulbs neo4j 2.1.5. have followed next steps doesnt help.

downloaded , unzipped neo4j 2.1.5.

downloaded , unzipped neo4j gremlin plugin 2.1.5.

copied jars gremlin plugin $neo4j_home/plugins/gremlin-plugin

modified neo4j-server.properties add together this:

org.neo4j.server.thirdparty_jaxrs_classes=com.thinkaurelius.neo4j.plugins=/tp

restarted neo4j

bin/neo4j start

the extension doesnt show up

root@scspn0018050001:~# curl localhost:7474/db/data/ { "extensions" : { }, "node" : "http://localhost:7474/db/data/node", "node_index" : "http://localhost:7474/db/data/index/node", "relationship_index" : "http://localhost:7474/db/data/index/relationship", "extensions_info" : "http://localhost:7474/db/data/ext", "relationship_types" : "http://localhost:7474/db/data/relationship/types", "batch" : "http://localhost:7474/db/data/batch", "cypher" : "http://localhost:7474/db/data/cypher", "indexes" : "http://localhost:7474/db/data/schema/index", "constraints" : "http://localhost:7474/db/data/schema/constraint", "transaction" : "http://localhost:7474/db/data/transaction", "node_labels" : "http://localhost:7474/db/data/labels", "neo4j_version" : "2.1.5" }

however executes fine

root@scspn0018050001:~# curl http://localhost:7474/tp/gremlin/execute {"success":true}

now, how bulbs script look:

from bulbs.neo4jserver import graph,config, neo4j_uri config = config('http://localhost:7474/db/data') graph = graph(config) james = graph.vertices.create(name="james")

however next error on executing bulbs script

root@scspn0018050001:~/neuro/src# python bulbstest.py traceback (most recent phone call last): file "bulbstest.py", line 4, in <module> james = graph.vertices.create(name="james") file "/usr/local/lib/python2.7/dist-packages/bulbs/element.py", line 565, in create resp = self.client.create_vertex(data, keys=_keys) file "/usr/local/lib/python2.7/dist-packages/bulbs/neo4jserver/client.py", line 424, in create_vertex homecoming self.create_indexed_vertex(data, index_name, keys=keys) file "/usr/local/lib/python2.7/dist-packages/bulbs/neo4jserver/client.py", line 1054, in create_indexed_vertex homecoming self.gremlin(script,params) file "/usr/local/lib/python2.7/dist-packages/bulbs/neo4jserver/client.py", line 384, in gremlin homecoming self.request.post(path, params) file "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 131, in post homecoming self.request(post, path, params) file "/usr/local/lib/python2.7/dist-packages/bulbs/rest.py", line 186, in request homecoming self.response_class(http_resp, self.config) file "/usr/local/lib/python2.7/dist-packages/bulbs/neo4jserver/client.py", line 217, in __init__ self.handle_response(response) file "/usr/local/lib/python2.7/dist-packages/bulbs/neo4jserver/client.py", line 249, in handle_response response_handler(response) file "/usr/local/lib/python2.7/dist-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': '752', '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:115)", "org.neo4j.server.plugins.pluginmanager.invoke(pluginmanager.java:156)", "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(method.java:606)", "org.neo4j.server.rest.transactional.transactionalrequestdispatcher.dispatch(transactionalrequestdispatcher.java:139)", "java.lang.thread.run(thread.java:744)" ]\n}')

any help appreciated.

neo4j gremlin bulbs

No comments:

Post a Comment