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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.9.0
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: