Member since
04-20-2016
9
Posts
2
Kudos Received
0
Solutions
09-29-2020
05:27 AM
Facing issues with region availability and it seems to be due to compactions. We are getting below exception when we try to access region org.apache.hadoop.hbase.NotServingRegionException: Region is not online But when we checked corresponding region server logs we can see lot of compactions happening on the table. Does table becomes unaccessible during compaction? Is there a way to reduce number of compactions through some setting?
... View more
05-27-2016
12:43 AM
@Jason Knaster I just tested this scenario on Hbase 1.1.2 and it worked. [root@ey ~]# cat /usr/hdp/current/hbase-master/conf/hbase-site.xml <configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///test/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/test/zookeeper</value>
</property>
</configuration> root@ey hbase-master]# ./bin/start-hbase.sh
[root@ey hbase-master]# hbase shell
hbase(main):001:0> create 't1','c1'
0 row(s) in 1.4790 seconds
=> Hbase::Table - t1
hbase(main):002:0> put 't1','123','c1:id','123m'
0 row(s) in 0.1500 seconds
hbase(main):003:0> scan 't1'
ROW COLUMN+CELL
123 column=c1:id, timestamp=1464183553280, value=123m
1 row(s) in 0.0340 seconds
Then Stopped the standlone Hbase .
Compressed and transfer the hbase dir to another node.
[root@ey hbase-master]# tar -cvf test.tar /test
[root@ey ~]# scp test.tar root@AD:/root/
On Node "AD"
[root@AD ~]# tar xvf test.tar
[root@AD ~]# mv /root/test /
Copied same hbase-site.xml from primary hbase.
[root@AD hbase-master]# ./bin/start-hbase.sh
root@AD hbase-master]# hbase shell
hbase(main):001:0> list
TABLE
t1
1 row(s) in 0.2860 seconds
=> ["t1"]
hbase(main):002:0> scan 't1'
ROW COLUMN+CELL
123 column=c1:id, timestamp=1464183553280, value=123m
1 row(s) in 0.1290 seconds
hbase(main):003:0>
... View more