public class IndexBuilder extends Object
Modify ${HADOOP_HOME}/conf/hadoop-env.sh to include the hbase jar, the zookeeper jar (can be found in lib/ directory under HBase root, the examples output directory, and the hbase conf directory in HADOOP_CLASSPATH, and then run bin/hadoop org.apache.hadoop.hbase.mapreduce.IndexBuilder TABLE_NAME COLUMN_FAMILY ATTR [ATTR ...]
To run with the sample data provided in index-builder-setup.rb, use the arguments people attributes name email phone.
This code was written against HBase 0.21 trunk.
Modifier and Type | Class and Description |
---|---|
static class |
IndexBuilder.Map
Internal Mapper to be run by Hadoop.
|
Modifier and Type | Field and Description |
---|---|
static byte[] |
INDEX_COLUMN
the column family containing the indexed row key
|
static byte[] |
INDEX_QUALIFIER
the qualifier containing the indexed row key
|
Constructor and Description |
---|
IndexBuilder() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.mapreduce.Job |
configureJob(org.apache.hadoop.conf.Configuration conf,
String[] args)
Job configuration.
|
static void |
main(String[] args) |
public static final byte[] INDEX_COLUMN
public static final byte[] INDEX_QUALIFIER
public static org.apache.hadoop.mapreduce.Job configureJob(org.apache.hadoop.conf.Configuration conf, String[] args) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.