我是Elasticsearch和mongodb的新手。
我正在尝试使连接器工作,并按照以下步骤操作: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-connector启动并运行!您通过cURL从elasticsearch获得的错误消息告诉您没有索引“connectortest”。
获取通过curl localhost:9200/_cat/indices?pretty
列出的现有指数并报告输出!