質問

I have visited so many links but couldn't find any solution on this that "Is it possible to create multiple tables in hbase?"if yes then how?

役に立ちましたか?

解決

Basically you want to have multiple tables in same region.

This is not possible, because regions are part of a table and not viceversa (tables part of a region). Each table is split into regions and each region is served by one region server. When created, unless specified, each table has only one region.

The Regions Architecture chapter in the HBase Book points out the architecture of a region.

他のヒント

Right now it's not possible to create multiple tables in one go. HBaseAdmin implementation currently doesn't support this.

As an alternate you could create a list of tables and loop through it, calling HBaseAdmin.createTable(HTableDescriptor desc) in every iteration.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top