Question

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?

Était-ce utile?

La solution

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.

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top