Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

namespace doesnt exist in meta but has a znode

avatar
Explorer

When creating table through hbase shell.

it is stuck forever.

checked log and found" namespace doesnt exist in meta but has a znode"

next Terminating Master

Please help

1 ACCEPTED SOLUTION

avatar
Super Guru

@Amit Samanta,

Looks like your hbase got into some inconsistent state somehow. The namespace creation is failed. You can check the logs under /var/log/hbase/hbase-master-xxx.log

You can try doing the below steps and see if this works.

For non kerberized environment,

# su hbase
# zookeeper-client -server {some-zookeeper-hostname}:2181
## rmr /hbase-unsecure ----> This should be run inside zookeeper shell
## quit

.

For kerberized environment,

# kinit -kt /etc/security/keytabs/hbase.headless.keytab hbase
# zookeeper-client -server {some-zookeeper-hostname}:2181
## rmr /hbase-secure
## quit

.

Restart HBase after performing above steps.

.

Please "Accept" the answer if this helps

View solution in original post

4 REPLIES 4

avatar
Super Guru

@Amit Samanta,

Looks like your hbase got into some inconsistent state somehow. The namespace creation is failed. You can check the logs under /var/log/hbase/hbase-master-xxx.log

You can try doing the below steps and see if this works.

For non kerberized environment,

# su hbase
# zookeeper-client -server {some-zookeeper-hostname}:2181
## rmr /hbase-unsecure ----> This should be run inside zookeeper shell
## quit

.

For kerberized environment,

# kinit -kt /etc/security/keytabs/hbase.headless.keytab hbase
# zookeeper-client -server {some-zookeeper-hostname}:2181
## rmr /hbase-secure
## quit

.

Restart HBase after performing above steps.

.

Please "Accept" the answer if this helps

avatar
Explorer

@Aditya Sirna there were some issue in properties in hbase-site.xml

fixed it. from configuring the properties from ambari itself.

but there is some issue popped in ambari that zookeeper is getting stopped.

but when running from CUI with ./zkServer.sh start

it is successfully running.

but it is not getting reflected in ambari service..

checked the log error "permission denied - "FAILDED TO WRITE PID File"

default permission was hadoop zookeeper changed to root:root

still same.

do you know that the datadir for zookeeper takes from root or hdfs(user)

or please suggest to solve it.

Thank you in advance.

And really thanks for the above solution.

avatar
Super Guru
@Amit

I suggest you to start all the services from Ambari and not from CUI. It may change the permissions of the files depending on the user who start the services. Zookeeper data directory should be owned by zookeeper user

Permission of /hadoop/zookeeper (except myid file) should be zookeeper:hadoop

avatar
Explorer

All service is not starting getting failed while starting zookeeper service.

once i change zookeeper:hadoop to root:root

again changed to zookeeper:hadoop still same.