Reputation: 332
I want to check weather Namespace already exists in Hbase or not , how can I get this ?
Upvotes: 1
Views: 2075
Reputation: 493
From shell you can use:
echo 'list_namespace' | hbase shell 2>/dev/null | grep 'ns_to_search'
echo $?
Upvotes: 0
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