serviceManager.waitForStatus(true);
URL url = serviceManager.getServiceURL();
uploadResults(url, "fantasy", 2014, FANTASY_2014);
uploadResults(url, "fantasy", 2015, FANTASY_2015);
uploadResults(url, "critters", 2014, CRITTERS_2014);
<BUG>MapReduceManager mrManager = appManager.getMapReduceManager("ScoreCounter");
mrManager.start(ImmutableMap.of("league", "fantasy"));
mrManager.waitForFinish(5, TimeUnit.MINUTES); // should be much faster, though</BUG>
DataSetManager<PartitionedFileSet> dataSetManager = getDataset("totals");
PartitionedFileSet totals = dataSetManager.get();

serviceManager.waitForStatus(true);
URL url = serviceManager.getServiceURL();
uploadResults(url, "fantasy", 2014, FANTASY_2014);
uploadResults(url, "fantasy", 2015, FANTASY_2015);
uploadResults(url, "critters", 2014, CRITTERS_2014);
MapReduceManager mrManager =
appManager.getMapReduceManager("ScoreCounter").start(ImmutableMap.of("league", "fantasy"));
mrManager.waitForFinish(5, TimeUnit.MINUTES); // should be much faster, though
DataSetManager<PartitionedFileSet> dataSetManager = getDataset("totals");
PartitionedFileSet totals = dataSetManager.get();
