job.setReducerClass(ImportMRReducer.class);
job.setInputFormatClass(TextInputFormat.class);
job.setOutputFormatClass(AccumuloElementOutputFormat.class);
FileInputFormat.addInputPath(job, new Path(conf.get("in")));
int returnCode = job.waitForCompletion(true) ? 0 : 1;
CounterGroup groupCounters = job.getCounters().getGroup(FriendsterImportCounters.class.getName());
for (Counter counter : groupCounters) {
System.out.println(counter.getDisplayName() + ": " + counter.getValue());
}