How to import data from mongodb to apache solr using mongo-connector

二次信任 提交于 2019-12-10 15:46:46

问题


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.

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 localhost:27017 -t http://localhost:8983/solr -d solr_doc_manager

its not working. It is stuck at

Logging to mongo-connector.log.

This is the only line I am getting. How can I get rid of this problem?


回答1:


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



来源:https://stackoverflow.com/questions/37894301/how-to-import-data-from-mongodb-to-apache-solr-using-mongo-connector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!