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

discrepancy on mapReduce and mapreduce command

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • MapReduce

    Description

      Using the mongo shell, mongod accepts as command both mapreduce and mapReduce

      > db.runCommand(
                        {
                          mapreduce: 'orders',
      	           ...
                        } 
                    )
      {
      	"result" : "testName",
      	"timeMillis" : 36,
      	"counts" : {
      		"input" : 0,
      		"emit" : 0,
      		"reduce" : 0,
      		"output" : 0
      	},
      	"ok" : 1
      }
       
      mongod> db.runCommand(
                      {
                        mapReduce: 'orders',
                       ...
                      }
                    )
      {
      	"result" : "testName",
      	"timeMillis" : 40,
      	"counts" : {
      		"input" : 0,
      		"emit" : 0,
      		"reduce" : 0,
      		"output" : 0
      	},
      	"ok" : 1
      }
       

      However, using the mongo shell, mongos only accepts the command mapreduce and will error out with mapReduce.

      mongos> db.runCommand(
                      {
                        mapReduce: 'orders',
                        ...
                      }
                    )
      { "ok" : 0, "errmsg" : "no such cmd: mapReduce" }
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: