title: how to integrate between MONGODB & SOLR, using MONGO-CONNECTOR
body: <p>I am very new to mongodb and solr can any one help me to  integrate between MONGODB &amp; SOLR,  using MONGO-CONNECTOR</p>
  
  <p>1.like this i was started my mongod with replSet mod </p>
  
  <pre><code>mongod --dbpath=/home/local/ASSYST-COC/so/mongo  --replSet myrep --auth 
  </code></pre>
  
  <p>2.mongo started </p>
  
  <pre><code>mongo -u root -p root --authenticationDatabase admin
  </code></pre>
  
  <p>3.IN mongo already i have dbs with some collections
  4.started solr </p>
  
  <pre><code>java -jar start.jar(version 4.7)
  </code></pre>
  
  <p>5.next mongoconnector started</p>
  
  <pre><code> sudo python /usr/lib/python2.7/site-packages/mongo-connector/mongo_connector.py -m localhost:27017 -t http://localhost:8983/solr  -o /usr/lib/python2.7/site-packages/mongo-connector/config.txt -a root -p root -n smmc-dart.testcase  -d /usr/lib/python2.7/site-packages/mongo-connector/doc_managers/solr_doc_manager.py
  </code></pre>
  
  <p>After mongo connector started in  terminal it showing like.</p>
  
  <pre><code>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'&lt;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_inner
  self.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)
  </code></pre>
  
  <p>OperationFailure: command SON([('replSetGetStatus', 1)]) failed: unauthorized</p>
  
  <pre><code>2014-04-07 16:11:22,489 - INFO - Finished 'http://localhost:8983/solr/update/?  commit=true' (post) with body 'u'&lt;commit ' in 0.018 seconds.
  </code></pre>
  
  <p>Nothing is updating in Solr. </p>
  
  <p>6.I was checked in solr brower</p>
  
  <p>Is anything i need to  do more  please share to me</p>