basho-labs/riak-js — pull request #11 by spencergibb (2012-11-09 22:43:20+00:00)
Title: pass the defaults to the mapreduce client

HttpMapReduceClient is not using the options sent when creating the client.

var db = require('riak-js').getClient({host: "riak.myhost", port: "8098"});

Therefore, http requests for mapreduce were sent to localhost, when a different host was configured resulting in connection refused errors.