Mongo连接器错误:无法处理oplog文档

问题描述 投票:-1回答:1

我是neo4j-doc-manager的新手,我正尝试使用neo4j-doc-manager来查看从mongoDB到在neo4j中创建的图形的集合,如下所示:https://neo4j.com/developer/mongodb/

我的mongoDB和neo4j实例在本地运行,并且正在使用以下命令:

mongo-connector -m mongodb://localhost:27017/axa -t 
  http://<user_name>:
  <password>@localhost:7474/C:/Users/user_name/.Ne
  o4jDesktop/neo4jDatabases/database-c791fa15-9a0d-4051-bb1f- 
  316ec9f1c7df/installation-4.0.3/data/ -d neo4j_doc_manager

但是我得到一个错误:

2020-04-17 15:49:47,011 [ERROR] mongo_connector.oplog_manager:309 - **Unable to process oplog document** {'ts': Timestamp(1587118784, 2), 't': 9, 'h': 0, 'v': 2, 'op': 'i', 'ns': 'axa.talks', 'ui': UUID('3245621e-e204-49fc-8350-d9950246fa6c'), 'wall': datetime.datetime(2020, 4, 17, 10, 19, 44, 994000), 'o': {'session': {'title': '12 Years of Spring: An Open Source Journey', 'abstract': 'Spring emerged as a core open source project in early 2003 and evolved to a broad portfolio of open source projects up until 2015.'}, 'topics': ['keynote', 'spring'], 'room': 'Auditorium', 'timeslot': 'Wed 29th, 09:30-10:30', 'speaker': {'name': 'Juergen Hoeller', 'bio': 'Juergen Hoeller is co-founder of the Spring Framework open source project.', 'twitter': 'https://twitter.com/springjuergen', 'picture': 'http://www.springio.net/wp-content/uploads/2014/11/juergen_hoeller-220x220.jpeg'}}}
Traceback (most recent call last):
  File "c:\users\user_name\pycharmprojects\axa_experience\venv\lib\site-packages\py2neo\core.py", line 258, in get
    response = self.__base.get(headers=headers, redirect_limit=redirect_limit, **kwargs)
  File "c:\users\user_name\pycharmprojects\axa_experience\venv\lib\site-packages\py2neo\packages\httpstream\http.py", line 966, in get
    return self.__get_or_head("GET", if_modified_since, headers, redirect_limit, **kwargs)
  File "c:\users\user_name\pycharmprojects\axa_experience\venv\lib\site-packages\py2neo\packages\httpstream\http.py", line 943, in __get_or_head
    return rq.submit(redirect_limit=redirect_limit, **kwargs)
  File "c:\users\user_name\pycharmprojects\axa_experience\venv\lib\site-packages\py2neo\packages\httpstream\http.py", line 452, in submit
    return Response.wrap(http, uri, self, rs, **response_kwargs)
  File "c:\users\user_name\pycharmprojects\axa_experience\venv\lib\site-packages\py2neo\packages\httpstream\http.py", line 489, in wrap
    raise inst
**py2neo.packages.httpstream.http.ClientError: 404 Not Found**

Versions used:
Python - 3.8
mongoDB - 4.2.5
neo4j - 4.0.3

在这方面的任何帮助,我将不胜感激。

mongodb neo4j py2neo
1个回答
0
投票

我遇到了同样的问题,我认为该问题与py2neo的版本有关。 Mongo连接器似乎仅适用于2.0.7版,但安装该版本Neo4j 4.0不适用于2.0.7版。这是我卡住的地方,没有找到解决方案。也许使用Neo4J 3.0可以解决此问题,但对我而言不起作用,因为我需要4.0的结构数据库。我最近开始研究mongodb的APOC程序。希望这对您有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.