|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.mapreduce.IndexBuilder
public class IndexBuilder
Example map/reduce job to construct index tables that can be used to quickly find a row based on the value of a column. It demonstrates:
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.
Nested Class Summary | |
---|---|
static class |
IndexBuilder.Map
Internal Mapper to be run by Hadoop. |
Field Summary | |
---|---|
static byte[] |
INDEX_COLUMN
the column family containing the indexed row key |
static byte[] |
INDEX_QUALIFIER
the qualifier containing the indexed row key |
Constructor Summary | |
---|---|
IndexBuilder()
|
Method Summary | |
---|---|
static org.apache.hadoop.mapreduce.Job |
configureJob(org.apache.hadoop.conf.Configuration conf,
String[] args)
Job configuration. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] INDEX_COLUMN
public static final byte[] INDEX_QUALIFIER
Constructor Detail |
---|
public IndexBuilder()
Method Detail |
---|
public static org.apache.hadoop.mapreduce.Job configureJob(org.apache.hadoop.conf.Configuration conf, String[] args) throws IOException
IOException
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |