带灯泡的neo4j 2.1.5

带灯泡的neo4j 2.1.5,neo4j,gremlin,bulbs,Neo4j,Gremlin,Bulbs,如何使用neo4j 2.1.5连接灯泡。我已经遵循了以下步骤,但没有帮助 下载并解压缩neo4j 2.1.5 下载并解压缩neo4j gremlin插件2.1.5 将所有JAR从gremlin plugin复制到$NEO4J_HOME/plugins/gremlin plugin 修改neo4j-server.properties以添加以下内容: org.neo4j.server.thirdparty\u jaxrs\u classes=com.thinkaurelius.neo4j.plug

如何使用neo4j 2.1.5连接灯泡。我已经遵循了以下步骤,但没有帮助

  • 下载并解压缩neo4j 2.1.5

  • 下载并解压缩neo4j gremlin插件2.1.5

  • 将所有JAR从gremlin plugin复制到$NEO4J_HOME/plugins/gremlin plugin

  • 修改neo4j-server.properties以添加以下内容:

    org.neo4j.server.thirdparty\u jaxrs\u classes=com.thinkaurelius.neo4j.plugins=/tp

  • 重新启动的neo4j

    bin/neo4j启动

  • 分机没有显示

    root@scspn0018050001:~#curl localhost:7474/db/data/
    {
    “扩展”:{
    },
    “节点”:”http://localhost:7474/db/data/node",
    “节点索引”:http://localhost:7474/db/data/index/node",
    “关系索引”:http://localhost:7474/db/data/index/relationship",
    “扩展信息”:http://localhost:7474/db/data/ext",
    “关系类型”:http://localhost:7474/db/data/relationship/types",
    “批次”:http://localhost:7474/db/data/batch",
    “密码”:http://localhost:7474/db/data/cypher",
    “索引”:http://localhost:7474/db/data/schema/index",
    “限制”:http://localhost:7474/db/data/schema/constraint",
    “交易”:http://localhost:7474/db/data/transaction",
    “节点_标签”:http://localhost:7474/db/data/labels",
    “neo4j_版本”:“2.1.5”
    }

  • 然而,这执行得很好

    root@scspn0018050001:~#卷曲http://localhost:7474/tp/gremlin/execute
    {“success”:true}

  • 现在,我的脚本是这样的:

    来自bulls.neo4jserver导入图、配置、NEO4J_URI
    config=config('http://localhost:7474/db/data')
    图形=图形(配置)
    james=graph.vertices.create(name=“james”)

  • 但是,我在执行脚本时遇到以下错误

root@scspn0018050001:~/neuro/src#python bulbtest.py
回溯(最近一次呼叫最后一次):
文件“bulbtest.py”,第4行,在
james=graph.vertices.create(name=“james”)
文件“/usr/local/lib/python2.7/dist packages/bulls/element.py”,第565行,在create中
resp=self.client.create_顶点(数据,关键点=_关键点)
文件“/usr/local/lib/python2.7/dist packages/bulls/neo4jserver/client.py”,第424行,位于create_顶点中
返回self.create_index_顶点(数据、索引名称、键=键)
文件“/usr/local/lib/python2.7/dist packages/bulls/neo4jserver/client.py”,第1054行,位于创建索引顶点中
返回self.gremlin(脚本,参数)
gremlin格式的文件“/usr/local/lib/python2.7/dist packages/bulls/neo4jserver/client.py”,第384行
返回self.request.post(路径,参数)
文件“/usr/local/lib/python2.7/dist-packages/bulls/rest.py”,第131行,在post中
返回self.request(POST、path、params)
文件“/usr/local/lib/python2.7/dist packages/bulls/rest.py”,请求中的第186行
返回self.response\u类(http\u resp,self.config)
文件“/usr/local/lib/python2.7/dist packages/bulls/neo4jserver/client.py”,第217行,在__
自我处理_响应(响应)
handle_响应中的文件“/usr/local/lib/python2.7/dist packages/bulls/neo4jserver/client.py”,第249行
响应处理程序(响应)
文件“/usr/local/lib/python2.7/dist packages/bulls/rest.py”,第39行,未找到
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“消息”:“没有这样的服务器插件:\\\\\\\\\”GremlinPlugin\\”,\n“异常”:“PluginLookupException”,\n“全名”:“org.neo4j.server.plugins.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.dispatcher(TransactionalRequestDispatcher.java:139)”,“java.lang.Thread.run(Thread.java:744)”]\n}’,

感谢您的帮助