org.apache.accumulo.core.util
Class HadoopCompatUtil
java.lang.Object
org.apache.accumulo.core.util.HadoopCompatUtil
public class HadoopCompatUtil
- extends Object
Utility to help manage binary compatibility between Hadoop versions 1 and 2.
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 |
HadoopCompatUtil
public HadoopCompatUtil()
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.