Javed IN
Javed IN

Reputation: 332

How to check whether Namespace already exists in Hbase or not?

I want to check weather Namespace already exists in Hbase or not , how can I get this ?

Upvotes: 1

Views: 2075

Answers (2)

Kalyan Ghosh
Kalyan Ghosh

Reputation: 493

From shell you can use:

echo 'list_namespace' | hbase shell 2>/dev/null | grep 'ns_to_search'
echo $?

Upvotes: 0

Pirate X
Pirate X

Reputation: 3093

You can check the namespace whether it is available by

hbase> list_namespace

You can find all the namespace commands in the Hbase Shell Commands

Upvotes: 2

Related Questions