py2neo.packages.httpstream.http.SocketError:连接被拒绝

时间:2019-04-02 09:30:53

标签: neo4j py2neo

当我尝试运行python文件“ joern-plot-ast”并在数据库Neo4j中输出一些结果时,出现错误“ py2neo.packages.httpstream.http.SocketError:连接被拒绝”。

use neo4j version: 2.1.8.
python version:2.7.
py2neo:2.0

String cmd1 = "echo \'queryNodeIndex(\"type:Function\").id\' | " +

"python /home/sun/下载/joern-tools/build/scripts-2.7/joern-lookup -g |  " +

"python /home/sun/下载/joern-tools/build/scripts-2.7/joern-plot-ast | " +

"python /home/sun/下载/joern-tools/build/scripts-2.7/joern-astlabel |  " +

 "python /home/sun/下载/joern-tools/build/scripts-2.7/joern-ast2features >" + outputfilename;

Process joernscripts = dbTime.exec((new String[]{"/bin/sh","-c", cmd1}));

joernscripts.waitFor(); BufferedReader br5 = new BufferedReader(new InputStreamReader(joernscripts.getInputStream())); 

while(br5.ready())
System.out.println(br5.readLine());

实际结果:看图片。

enter image description here

0 个答案:

没有答案