HBASE-1488 After 1304 goes in, fix and reenable test of thrift, mr indexer, and merge tool -- part 1

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@785913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-06-18 05:35:00 +00:00
parent eb6ce6abe0
commit 83b3772eb3
1 changed files with 6 additions and 7 deletions

View File

@ -39,7 +39,6 @@ import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.client.ResultScanner;
import org.apache.hadoop.hbase.io.RowResult;
import org.apache.hadoop.hbase.io.Cell;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.MultiRegionTable;
@ -59,8 +58,8 @@ import org.apache.lucene.search.TermQuery;
/**
* Test Map/Reduce job to build index over HBase table
*/
public class DisabledTestTableIndex extends MultiRegionTable {
private static final Log LOG = LogFactory.getLog(DisabledTestTableIndex.class);
public class TestTableIndex extends MultiRegionTable {
private static final Log LOG = LogFactory.getLog(TestTableIndex.class);
static final String TABLE_NAME = "moretest";
static final String INPUT_COLUMN = "contents:";
@ -77,7 +76,7 @@ public class DisabledTestTableIndex extends MultiRegionTable {
private JobConf jobConf = null;
/** default constructor */
public DisabledTestTableIndex() {
public TestTableIndex() {
super(INPUT_COLUMN);
desc = new HTableDescriptor(TABLE_NAME);
desc.addFamily(new HColumnDescriptor(INPUT_COLUMN));
@ -109,7 +108,7 @@ public class DisabledTestTableIndex extends MultiRegionTable {
conf.set("hbase.index.conf", createIndexConfContent());
try {
jobConf = new JobConf(conf, DisabledTestTableIndex.class);
jobConf = new JobConf(conf, TestTableIndex.class);
jobConf.setJobName("index column contents");
jobConf.setNumMapTasks(2);
// number of indexes to partition into
@ -261,6 +260,6 @@ public class DisabledTestTableIndex extends MultiRegionTable {
* @param args unused
*/
public static void main(String[] args) {
TestRunner.run(new TestSuite(DisabledTestTableIndex.class));
TestRunner.run(new TestSuite(TestTableIndex.class));
}
}