private void erlangBucketMR(String bucketType) throws InterruptedException, ExecutionException
{
initValues(bucketType);
Namespace ns = new Namespace(bucketType, mrBucketName);
BucketMapReduce bmr =
new BucketMapReduce.Builder()
.withNamespace(ns)
.withMapPhase(Function.newErlangFunction("riak_kv_mapreduce", "map_object_value"), false)
.withReducePhase(Function.newErlangFunction("riak_kv_mapreduce", "reduce_string_to_integer"), false)
.withReducePhase(Function.newErlangFunction("riak_kv_mapreduce", "reduce_sort"), true)