如何使用MONGO-CONNECTOR在MONGODB和SOLR之间进行整合

  • 像这样,我用replSet mod启动了我的mongod
mongod --dbpath=/home/local/ASSYST-COC/so/mongo --replSet myrep --auth 

mongo连接器在terminal启动后显示。

  2014-04-07 16:11:19,865 - INFO - Beginning Mongo Connector 2014-04-07 16:11:21,335 - INFO - Starting new HTTP connection (1): localhost 2014-04-07 16:11:21,469 - INFO - Finished 'http://localhost:8983/solr/update/? commit=true' (post) with body 'u'<commit ' in 0.159 seconds. 2014-04-07 16:11:21,475 - INFO - MongoConnector: Empty oplog progress file. Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 530, in __bootstrap_innerself.run() File "/usr/lib/python2.7/site-packages/mongo-connector/mongo_connector.py", line 204, in run repl_set = prim_admin.command("replSetGetStatus")['set'] File "/usr/lib/python2.7/site-packages/pymongo/database.py", line 396, in command msg, allowable_errors) File "/usr/lib/python2.7/site-packages/pymongo/helpers.py", line 147, in _check_command_response raise OperationFailure(msg % errmsg, code) OperationFailure: command SON([('replSetGetStatus', 1)]) failed: unauthorized 2014-04-07 16:11:22,489 - INFO - Finished `http://localhost/solr/update/? commit=true` (post) with body 'u'<commit ' in 0.018 seconds. 

在Solr中没有更新,我在Solr Web控制台界面中检查了这一点。

我需要做什么?