Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 索引用户未配置,Neo4j批量导入器2.0错误_Batch File_Csv_Neo4j_Export To Csv_Graph Databases - Fatal编程技术网

Batch file 索引用户未配置,Neo4j批量导入器2.0错误

Batch file 索引用户未配置,Neo4j批量导入器2.0错误,batch-file,csv,neo4j,export-to-csv,graph-databases,Batch File,Csv,Neo4j,Export To Csv,Graph Databases,我已经下载了适用于Windows和zip(CSV)批量导入器2.0的Neo4j社区2.0.0版。 我正在尝试将csv文件导入Neo4j db。现在我只使用nodes2.csv,没有关系 我正在使用这些样本: nodes2.csv name:string:users age works_on Michael 37 neo4j Selina 14 Rana 6 Selma 4 批处理属性 dump_configuration=false cache_type=none use_

我已经下载了适用于Windows和zip(CSV)批量导入器2.0的Neo4j社区2.0.0版。 我正在尝试将csv文件导入Neo4j db。现在我只使用nodes2.csv,没有关系

我正在使用这些样本:

nodes2.csv

name:string:users    age works_on
Michael 37  neo4j
Selina  14
Rana    6
Selma   4
批处理属性

dump_configuration=false
cache_type=none
use_memory_mapped_buffers=true
neostore.propertystore.db.index.keys.mapped_memory=5M
neostore.propertystore.db.index.mapped_memory=5M
neostore.nodestore.db.mapped_memory=200M
neostore.relationshipstore.db.mapped_memory=500M
neostore.propertystore.db.mapped_memory=200M
neostore.propertystore.db.strings.mapped_memory=200M
batch_import.node_index.users=exact
我是这样执行的:

C:\Users\X\Desktop\batch_importer_20>import.bat C:\Users\X\Documents\Neo4j\test.db  sample\nodes2.csv 
但我得到了这个错误:

Exception in thread "main" java.lang.IllegalStateException: Index users not configured.
    at org.neo4j.batchimport.Importer.importNodes(Importer.java:108)
    at org.neo4j.batchimport.Importer.doImport(Importer.java:228)
    at org.neo4j.batchimport.Importer.main(Importer.java:83)

右侧批导入器仅在当前目录中查找
batch.properties


不过,您可以提供属性文件的路径作为第一个参数。这应该也行。

命令行中有两个空格吗?它还能输出什么?@MichaelHunger在实际情况中,没有双空格。只是打印出
未配置索引用户。
错误并打印出已导入0个节点。您可以使用只有标题的空rels.csv文件进行尝试吗?@MichaelHunger我已尝试添加rels.csv,它的工作原理与您所说的一样,但只有在节点2.csv的标题中省略“:users”的情况下才可以。我想如果我在标题中省略“:users”,那么就不会有自动索引,因为批处理中的prop
batch\u import.node\u index.users=exact
。属性取决于它。解决方案。我将batch_import.node_index.users=exact放入子目录示例中,而不是主目录中的batch.properties文件。因此,在配置文件中找不到任何用户。