问题:linux启动时报错 :WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
解决:https://my.oschina.net/sunyouling/blog/886051
问题:使用neo4j-import导入节点报错:Expected '--nodes' to have at least 1 valid item, but had 0 []
Input error: Expected '--nodes' to have at least 1 valid item, but had 0 []
Caused by:Expected '--nodes' to have at least 1 valid item, but had 0 []
java.lang.IllegalArgumentException: Expected '--nodes' to have at least 1 valid item, but had 0 []
at org.neo4j.kernel.impl.util.Validators.lambda$atLeast$6(Validators.java:125)
at org.neo4j.helpers.Args.validated(Args.java:640)
at org.neo4j.helpers.Args.interpretOptionsWithMetadata(Args.java:608)
at org.neo4j.tooling.ImportTool.extractInputFiles(ImportTool.java:508)
at org.neo4j.tooling.ImportTool.main(ImportTool.java:388)
at org.neo4j.tooling.ImportTool.main(ImportTool.java:334)
解决:是文件路径的问题。
http://neo4j.com.cn/topic/58f824a6412d3d2c19c32e28
在配置文件中注释#dbms.directories.import=import
在使用import导入时csv文件的地址用绝对路径./neo4j-import --into /demo/data/databases/graph4.db/ --nodes:User /demo/software/neo4j-enterprise-3.1.1/import/utf8.csv
如果不想用绝对路径。csv文件要放在bin目录下 ./neo4j-import --into /demo/data/databases/graph5.db/ --nodes:User utf8.csv