org.apache.blur.mapreduce.lib
Class BlurMapReduceUtil

java.lang.Object
  extended by org.apache.blur.mapreduce.lib.BlurMapReduceUtil

public class BlurMapReduceUtil
extends Object

This utility code was taken from HBase to locate classes and the jars files to add to the MapReduce Job.


Constructor Summary
BlurMapReduceUtil()
           
 
Method Summary
static void addAllJarsInBlurLib(org.apache.hadoop.conf.Configuration conf)
          Adds all the jars in the same path as the blur jar files.
static void addDependencyJars(org.apache.hadoop.conf.Configuration conf, Class<?>... classes)
          Add the jars containing the given classes to the job's configuration such that JobClient will ship them to the cluster and add them to the DistributedCache.
static void addDependencyJars(org.apache.hadoop.mapreduce.Job job)
          Add the Blur dependency jars as well as jars for any of the configured job classes to the job configuration, so that JobClient will ship them to the cluster and add them to the DistributedCache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlurMapReduceUtil

public BlurMapReduceUtil()
Method Detail

addDependencyJars

public static void addDependencyJars(org.apache.hadoop.mapreduce.Job job)
                              throws IOException
Add the Blur dependency jars as well as jars for any of the configured job classes to the job configuration, so that JobClient will ship them to the cluster and add them to the DistributedCache.

Throws:
IOException

addAllJarsInBlurLib

public static void addAllJarsInBlurLib(org.apache.hadoop.conf.Configuration conf)
                                throws IOException
Adds all the jars in the same path as the blur jar files.

Parameters:
conf -
Throws:
IOException

addDependencyJars

public static void addDependencyJars(org.apache.hadoop.conf.Configuration conf,
                                     Class<?>... classes)
                              throws IOException
Add the jars containing the given classes to the job's configuration such that JobClient will ship them to the cluster and add them to the DistributedCache.

Throws:
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.