Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7641

Error running MapReduce, which writes result to another db with authorization.

    • Fully Compatible

      Have problem when try run MapReduce, which writes result to another db.

      Both db have authorization.

      MR out section:
      'out' :

      { 'merge' : $_outputCollection, 'db' : $_anotherDB, 'sharded' : true }

      Fails with error: MR parallel processing failed:
      { result: "tmp.mrs.views_raw_1348067821_5", errmsg: "exception: splitVector failed:

      { errmsg: "need to login", ok: 0.0 }

      ", code: 15921, ok: 0.0 }

      How I must login with MapReduce task?
      May be need change 'db' to array

      {'name':'$_anotherDB', 'user':'login', 'password':'pass'}

      ?

        1. mrShardedOutputAuth.js
          3 kB
          Daniel Pasette
        2. repro_mapreduce.js
          0.6 kB
          sam.helman@10gen.com
        3. repro_setup_auth.js
          0.2 kB
          sam.helman@10gen.com

            Assignee:
            dan@mongodb.com Daniel Pasette (Inactive)
            Reporter:
            nodkz Pavel Chertorogov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: