Multiple databases or namespace in Hbase

Fabien picture Fabien · Oct 24, 2012 · Viewed 15k times · Source

Is there a way to setup Hbase so we can create multiples databases inside the same cluster ?

Answer

psmith picture psmith · Jul 25, 2014

Just to refresh topic: http://hbase.apache.org/book.html#namespace

5.3.1. Namespace management A namespace can be created, removed or altered. Namespace membership is determined during table creation by specifying a fully-qualified table name of the form:

: Example 5.1. Examples

#Create a namespace
create_namespace 'my_ns'

#create my_table in my_ns namespace
create 'my_ns:my_table', 'fam'

#drop namespace
drop_namespace 'my_ns'

#alter namespace
alter_namespace 'my_ns', {METHOD => 'set', 'PROPERTY_NAME' => 'PROPERTY_VALUE'}