super.setup(context);
LOGGER.info("setup: " + toString(context.getInputSplit().getLocations()));
Map configurationMap = SecureGraphMRUtils.toMap(context.getConfiguration());
batchSize = context.getConfiguration().getInt("reindex.batchsize", DEFAULT_BATCH_SIZE);
elementCache = new ArrayList<Element>(batchSize);
this.graph = (AccumuloGraph) new GraphFactory().createGraph(MapUtils.getAllWithPrefix(configurationMap, "graph"));
this.authorizations = new AccumuloAuthorizations(context.getConfiguration().getStrings(SecureGraphMRUtils.CONFIG_AUTHORIZATIONS));
}