Huawei-Hadoop / hindex

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

I hadn't found the api of "admin.createTable(desc, startKey, endKey, numRegions)" #31

Closed edmund2004 closed 10 years ago

edmund2004 commented 10 years ago

I think the api is so import to begioning .And another question is What time the second can support Hadoop 2.X. Thank you

chrajeshbabu commented 10 years ago

The createTable API you are telling is available in HBaseAdmin. If you want to create table with index , create IndexedHTableDescriptor.

public void createTable(HTableDescriptor desc, byte [] startKey, byte [] endKey, int numRegions)

If your hadoop cluster is Hadoop 2.x then you can build by specifying hadoop profile 2.0 Ex; mvn clean package -DskipTests -Dhadoop.profile=2.0