Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

namespace doesnt exist in meta but has a znode

Solved Go to solution

namespace doesnt exist in meta but has a znode

New Contributor

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

Accepted Solutions
Highlighted

Re: namespace doesnt exist in meta but has a znode

@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
Highlighted

Re: namespace doesnt exist in meta but has a znode

@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

Highlighted

Re: namespace doesnt exist in meta but has a znode

New Contributor

@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.

Highlighted

Re: namespace doesnt exist in meta but has a znode

@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

Highlighted

Re: namespace doesnt exist in meta but has a znode

New Contributor

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.

Don't have an account?
Coming from Hortonworks? Activate your account here