gpt4 book ai didi

mongodb - elasticsearch mongo-connector卡在 “Logging to mongo-connector.log”中

转载 作者:行者123 更新时间:2023-12-03 01:51:34 24 4
gpt4 key购买 nike

我是Elastic Search和mongo的新手。

我正在尝试使连接器工作,并按照以下步骤操作:https://blog.jixee.me/how-to-use-mongo-connector-with-elasticsearch/

当我输入时:mongo-connector -m localhost:27017 -t localhost:9200 - -d elastic2_doc_manager -n connectortest.syncthis
它卡在“登录到mongo-connector.log”中

mongo-connector.log中没有任何内容

我正在使用mongodb3.2.10,elasticsearch 2.3.5和ubuntu 16.04
当我键入curl localhost:9200/connectortest/_search/?pretty=1时,我得到

{
"error" : {
"root_cause" : [ {
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_or_alias",
"resource.id" : "connectortest",
"index" : "connectortest"
} ],
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_or_alias",
"resource.id" : "connectortest",
"index" : "connectortest"
},
"status" : 404
}

请让我知道我在做什么错。

由于我是所有这些的新手,因此如果您需要在命令中提供一些请键入。

谢谢

最佳答案

您的mongo连接器已启动并正在运行!您通过cURL从elasticsearch获得的错误消息告诉您没有索引“connectortest”。

通过curl localhost:9200/_cat/indices?pretty获取列出的现有索引,并报告输出结果!

关于mongodb - elasticsearch mongo-connector卡在 “Logging to mongo-connector.log”中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40007467/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com