org.apache.accumulo.core.util
Class HadoopCompatUtil

java.lang.Object
  extended by org.apache.accumulo.core.util.HadoopCompatUtil

public class HadoopCompatUtil
extends Object

Utility to help manage binary compatibility between Hadoop versions 1 and 2.


Constructor Summary
HadoopCompatUtil()
           
 
Method Summary
static org.apache.hadoop.conf.Configuration getConfiguration(org.apache.hadoop.mapreduce.JobContext context)
          Uses reflection to pull Configuration out of the JobContext for Hadoop 1 and Hadoop2 compatibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopCompatUtil

public HadoopCompatUtil()
Method Detail

getConfiguration

public static org.apache.hadoop.conf.Configuration getConfiguration(org.apache.hadoop.mapreduce.JobContext context)
Uses reflection to pull Configuration out of the JobContext for Hadoop 1 and Hadoop2 compatibility

Parameters:
context - The job context for which to return the configuration
Returns:
The Hadoop Configuration- irrespective of the version of Hadoop on the classpath.


Copyright © 2015 Apache Accumulo Project. All rights reserved.