Created 10-01-2018 04:40 PM
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
Created 10-02-2018 03:54 AM
@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
Created 10-02-2018 03:54 AM
@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
Created 10-03-2018 05:55 AM
@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.
Created 10-03-2018 06:35 AM
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
Created 10-03-2018 02:51 PM
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.