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

数据在线全量导入功能报错json解析错误 #839

Open
jameFly opened this issue Dec 30, 2024 · 5 comments
Open

数据在线全量导入功能报错json解析错误 #839

jameFly opened this issue Dec 30, 2024 · 5 comments

Comments

@jameFly
Copy link

jameFly commented Dec 30, 2024

执行语句:lgraph_import -c zl_model_import.conf --online true --online_type 1 –verbose 2 -r http://127.0.0.1:7070 -u admin -p 73@TuGraph --graph default --continue_on_error true

参考文档地址:https://tugraph-db.readthedocs.io/zh-cn/latest/6.utility-tools/1.data-import.html#id12

image

报错信息:[20241230 10:37:04.419537 0x00007fda9d9a1a40 INFO toolkits/lgraph_import.cpp:325] An error occurred during import:
status code error [status_code: 500, error_message: CypherException: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal]

@zhangwh807
Copy link
Collaborator

lgraph_import -c import.config --online true --verbose 2 -r http://127.0.0.1:7070 -u admin -p 73@TuGraph --graph default --continue_on_error true
可以试试这个命令行,这个是在线增量导入。如果是一个空图(只是创建了图项目卡片),效果是和全量导入效果一样的;如果是一个存量的图,数据有新增的话效果就是继续增量导入。

@jameFly
Copy link
Author

jameFly commented Dec 31, 2024

我尝试了增量导入,但是我边中属性有pair_unique修饰,导入时如果此属性有重复的数据,则会导入中断。所以想尝试在线全量导入的方式。目前这个在线全量导入是我使用方式不对还是说有Bug?

@zhangwh807
Copy link
Collaborator

--online_type 1全量导入时应该是有bug,我这边也已经复现了。全量导入先用离线导入方式吧

@ljcui
Copy link
Collaborator

ljcui commented Dec 31, 2024

我尝试了增量导入,但是我边中属性有pair_unique修饰,导入时如果此属性有重复的数据,则会导入中断。所以想尝试在线全量导入的方式。目前这个在线全量导入是我使用方式不对还是说有Bug?

用upsert语句写入数据吧,通用点。

@jameFly
Copy link
Author

jameFly commented Dec 31, 2024

我再看看其他方式吧

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