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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 2.9.0
    • None
    • Connection Management
    • MongoDB v2.2.0 (replica set with authentication turned on)
      MongoDB Java Driver v2.9.0

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: