@InterfaceAudience.Public @InterfaceStability.Evolving public class KuduTableMapReduceUtil extends Object
Modifier and Type | Method and Description |
---|---|
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 Kudu 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.
|
static void |
addKuduDependencyJars(org.apache.hadoop.conf.Configuration conf)
Add Kudu and its dependencies (only) to the job configuration.
|
static KuduTable |
getTableFromContext(org.apache.hadoop.mapreduce.TaskInputOutputContext context)
Use this method when setting up a task to get access to the KuduTable in order to create
Inserts, Updates, and Deletes.
|
public static KuduTable getTableFromContext(org.apache.hadoop.mapreduce.TaskInputOutputContext context)
context
- Map contextpublic static void addDependencyJars(org.apache.hadoop.mapreduce.Job job) throws IOException
IOException
public static void addDependencyJars(org.apache.hadoop.conf.Configuration conf, Class<?>... classes) throws IOException
IOException
public static void addKuduDependencyJars(org.apache.hadoop.conf.Configuration conf) throws IOException
This is intended as a low-level API, facilitating code reuse between this class and its mapred counterpart. It also of use to external tools that need to build a MapReduce job that interacts with Kudu but want fine-grained control over the jars shipped to the cluster.
conf
- The Configuration object to extend with dependencies.IOException
KuduTableMapReduceUtil
,
PIG-3285Copyright © 2016. All rights reserved.