@InterfaceAudience.Public public class ImportTsv extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
usage(String)
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_SEPERATOR_CONF_KEY |
static String |
BULK_OUTPUT_CONF_KEY |
static String |
COLUMNS_CONF_KEY |
static String |
CREATE_TABLE_CONF_KEY |
static String |
CREDENTIALS_LOCATION |
static String |
DRY_RUN_CONF_KEY |
static String |
JOB_NAME_CONF_KEY |
protected static org.slf4j.Logger |
LOG |
static String |
LOG_BAD_LINES_CONF_KEY |
static String |
MAPPER_CONF_KEY |
static String |
NO_STRICT_COL_FAMILY |
static String |
SEPARATOR_CONF_KEY |
static String |
SKIP_EMPTY_COLUMNS |
static String |
SKIP_LINES_CONF_KEY |
static String |
TIMESTAMP_CONF_KEY |
Constructor and Description |
---|
ImportTsv() |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.hadoop.mapreduce.Job |
createSubmittableJob(org.apache.hadoop.conf.Configuration conf,
String[] args)
Sets up the actual job.
|
static void |
main(String[] args) |
int |
run(String[] args) |
protected static final org.slf4j.Logger LOG
public static final String MAPPER_CONF_KEY
public static final String BULK_OUTPUT_CONF_KEY
public static final String TIMESTAMP_CONF_KEY
public static final String JOB_NAME_CONF_KEY
public static final String DRY_RUN_CONF_KEY
public static final String LOG_BAD_LINES_CONF_KEY
public static final String SKIP_LINES_CONF_KEY
public static final String SKIP_EMPTY_COLUMNS
public static final String COLUMNS_CONF_KEY
public static final String SEPARATOR_CONF_KEY
public static final String ATTRIBUTE_SEPERATOR_CONF_KEY
public static final String CREDENTIALS_LOCATION
public static final String CREATE_TABLE_CONF_KEY
public static final String NO_STRICT_COL_FAMILY
public ImportTsv()
protected static org.apache.hadoop.mapreduce.Job createSubmittableJob(org.apache.hadoop.conf.Configuration conf, String[] args) throws IOException, ClassNotFoundException
conf
- The current configuration.args
- The command line parameters.IOException
- When setting up the job fails.ClassNotFoundException
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.