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?

Was it helpful?

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top