Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于命令行的问题 #9

Open
Chengdong-Yang opened this issue Dec 27, 2019 · 4 comments
Open

关于命令行的问题 #9

Chengdong-Yang opened this issue Dec 27, 2019 · 4 comments

Comments

@Chengdong-Yang
Copy link

我是一名新手,请问命令行究竟要怎么写,就一直报错。。。。。。一直报useage,我也把csv文件放在bin下面了,为什么会识别不出来,谢谢
:\neo4j-community-3.4.17\bin>neo4j-admin import --nodes executive.csv --nodes stock.csv -- nodes concept.csv --nodes industry.csv --relationships executive_stock.csv --relationships stock_industry.csv -- relationships stock_concept.csv
unrecognized option: ''

usage: neo4j-admin import [--mode=csv] [--database=]
[--additional-config=]
[--report-file=]
[--nodes[:Label1:Label2]=<"file1,file2,...">]
[--relationships[:RELATIONSHIP_TYPE]=<"file1,file2,...">]
[--id-type=<STRING|INTEGER|ACTUAL>]
[--input-encoding=]
[--ignore-extra-columns[=<true|false>]]
[--ignore-duplicate-nodes[=<true|false>]]
[--ignore-missing-nodes[=<true|false>]]
[--multiline-fields[=<true|false>]]
[--delimiter=]
[--array-delimiter=]
[--quote=]
[--max-memory=]
[--f=<File containing all arguments to this impo

@lemonhu
Copy link
Owner

lemonhu commented Dec 28, 2019

谢谢关注,问题可能在于neo4j-community-x.x.x/conf/neo4j.conf中的参数配置,在dbms.directories.import=import前加上#,以允许从任意路径进行数据导入。

@perfect-11
Copy link

请问你的这个问题解决了吗?我的情况跟你的一样,不知道怎么解决

@Chengdong-Yang
Copy link
Author

Chengdong-Yang commented Mar 7, 2020 via email

@perfect-11
Copy link

多谢大佬,解决了。
cd进入到bin目录下,执行下面的命令。
neo4j-admin import --database=stock.db --ignore-duplicate-nodes=true --ignore-missing-nodes=true --id-type=string --nodes=D:\neo4j\neo4j-community-3.5.15\import\executive.csv --nodes=D:\neo4j\neo4j-community-3.5.15\import\stock.csv --nodes=D:\neo4j\neo4j-community-3.5.15\import\industry.csv --nodes=D:\neo4j\neo4j-community-3.5.15\import\concept.csv --relationships=D:\neo4j\neo4j-community-3.5.15\import\executive_stock.csv --relationships=D:\neo4j\neo4j-community-3.5.15\import\stock_industry.csv --relationships=D:\neo4j\neo4j-community-3.5.15\import\stock_concept.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants