Huawei-Hadoop / hindex

Secondary Index for HBase
Apache License 2.0
591 stars 286 forks source link

The org.apache.hadoop.hbase.index.mapreduce.TableIndexer arguments problem #37

Closed rexwong closed 10 years ago

rexwong commented 10 years ago

hi, i used bulkload to import data. and there have some code in TableIndexer like this:

String[] tableName = conf.getStrings(TABLE_NAME_TO_INDEX);
    if (tableName == null) {
      System.out
          .println("Wrong usage.  Usage is pass the table -Dindex.tablename='table1' "
              + "-Dtable.columns.index='IDX1=>cf1:[q1->datatype& length],[q2],"
              + "[q3];cf2:[q1->datatype&length],[q2->datatype&length],[q3->datatype& lenght]#IDX2=>cf1:q5,q5'");
      System.out.println("The format used here is: ");

the TABLE_NAME_TO_INDEX's actual value is tablename.to.index but the comment is -Dindex.tablename='table1',is right?

jyothi-mandava commented 10 years ago

It has to be -Dtablename.to.index="table1". Thanks for finding it. we will fix it.

chrajeshbabu commented 10 years ago

Its fixed. Thanks