Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-651

MapReduce output to a temp db collection failed due to unauthorization issue

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.9.0
    • Component/s: Connection Management
    • Labels:
    • Environment:
      MongoDB v2.2.0 (replica set with authentication turned on)
      MongoDB Java Driver v2.9.0

      When MapReduce command outputs to a temp DB, it will fail due to unauthorization error. This is because the output DB of MapReduce is not the same as the one I issue the MapReduce command on, DBPort will not be able to authenticate against the output DB.

      I've figured out a workaround that I have to add a method to DB class to enforce authentication, such that before sending out the MapReduce command, I can ensure my temp DB is authenticated for that connection. But this is not ideal, as the client shouldn't need to deal with all these complexities.

            Unassigned Unassigned
            youyang Yong Ouyang
            0 Vote for this issue
            4 Start watching this issue