Kiran Haridas
Kiran Haridas

Reputation: 59

How to create Namespace On HBase

I have installed HBase on Linux platform Manually and with Cloudera. I can able to create tables on it, but i when am creating a namespace it trowing one error like this on both installations.

hbase(main):004:0> create_namespace 'my_ns'
NoMethodError: undefined method `create_namespace' for #<Object:0x699dbc28>

Hbase Version 0.94.12 Please help me on this. Thanks,

Upvotes: 3

Views: 6853

Answers (3)

fury.slay
fury.slay

Reputation: 1258

To create a namespace in HBase versions 0.96 and greater

1.Open HBase shell from HBase bin using command:

./hbase shell

2.Execute HBase shell command create_namespace 'testa'

hbase(main):006:0> create_namespace 'testa'
Took 0.2373 seconds

Note: namespace is not available in HBase versions < 9.96

Upvotes: 1

Arnon Rotem-Gal-Oz
Arnon Rotem-Gal-Oz

Reputation: 25909

As Donald mentioned Namespaces are not a feature of HBase 0.94. They were added in v0.96 (see 0.96 announcement here). (0.95 was a development version not a released version)

Upvotes: 0

Donald Miner
Donald Miner

Reputation: 39893

namespaces isn't available in 0.94 I believe.

The major effort on namespaces isn't completed yet. See https://issues.apache.org/jira/browse/HBASE-8015

However, it seems like some of it has been committed back. Most of the tickets say that it is fixed against 0.95.2 and 0.98.

Upvotes: 1

Related Questions