我刚接触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
它会卡在"Logging to mongo-connector.log“中。
不会在mongo-connector.log中写入任何内容
我使用的是mongodb3.2.10,elasticsearch 2.3.5和ubuntu16.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
}请告诉我我做错了什么。
因为我是新手,所以如果你需要提供一些东西,请输入命令。
谢谢
发布于 2017-03-11 00:07:03
您的mongo连接器已启动并运行!通过cURL从elasticsearch得到的错误消息告诉您没有索引"connectortest“。
请通过curl localhost:9200/_cat/indices?pretty获取列出的现有索引,并报告输出!
https://stackoverflow.com/questions/40007467
复制相似问题