如何使用mongo-connector将数据从mongodb导入到Apache Solr [英] How to import data from mongodb to apache solr using mongo-connector
问题描述
我是Apache Solr的新手.我想为我的搜索应用程序使用mongo-connector将数据从mongodb导入到solr.我遵循了
I am new to apache solr. I want to import data from mongodb to solr using mongo-connector for my search application. I followed steps from https://github.com/mongodb-labs/mongo-connector/wiki/Getting-Started.
我创建了restoreSet,并且copySet运行良好. 我还使用pip install安装了mongo-connector,但是在发出以下命令时:
I created replicaSet and replicaSet is running fine. I have also installed mongo-connector using pip install but when issue the following command:
mongo-connector -m本地主机:27017 -t http://localhost:8983/solr -d solr_doc_manager
mongo-connector -m localhost:27017 -t http://localhost:8983/solr -d solr_doc_manager
它不起作用.它被卡在
登录到mongo-connector.log.
Logging to mongo-connector.log.
这是我得到的唯一一行.我该如何摆脱这个问题?
This is the only line I am getting. How can I get rid of this problem?
推荐答案
登录到mongo-connector.log.不是错误, 它表示mongo连接器已开始记录到mongo-connector.log 如果将数据插入mongodb,它将开始推送至solr
The Logging to mongo-connector.log. is not the error , it indicates that the mongo connector is started logging to mongo-connector.log if you insert the data to mongodb , it starts pushing to solr
这篇关于如何使用mongo-connector将数据从mongodb导入到Apache Solr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!