How to merge two consecutive regions using command line in HBase?

0 votes
Can anyone explain how to merge two consecutive regions using command line in HBase?
May 29 in Big Data Hadoop by sunny
96 views

1 answer to this question.

0 votes

Hey,

The Master and RegionServer both participate in online merges. When the request to merge is sent to the Master, the Master moves the regions to be merged to the same RegionServer, usually the one where the region with the higher load resides. The Master then requests the RegionServer to merge the two regions. The RegionServer processes this request locally. Once the two regions are merged, the new region will be online and available for server requests, and the old regions are taken offline.

For merging two consecutive regions use the following command:

hbase> merge_region 'ENCODED_REGIONNAME', 'ENCODED_REGIONNAME'

For merging regions that are not adjacent, passing 'true' as the third parameter forces the merge:

hbase> merge_region 'ENCODED_REGIONNAME', 'ENCODED_REGIONNAME', true
answered May 29 by Gitika
• 25,420 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to create the Oozie DB using the 'ooziedb.sh' command line tool?

This is the command you can use: $ ...READ MORE

answered Jun 10 in Big Data Hadoop by Gitika
• 25,420 points
60 views
0 votes
1 answer

How do I print hadoop properties in command line?

You can use the following command to get ...READ MORE

answered Apr 6, 2018 in Big Data Hadoop by kurt_cobain
• 9,280 points
275 views
+1 vote
2 answers

How to authenticate username & password while using Connector for Cloudera Hadoop in Tableau?

Hadoop server installed was kerberos enabled server. ...READ MORE

answered Aug 21, 2018 in Big Data Hadoop by Priyaj
• 56,960 points
233 views
0 votes
11 answers
0 votes
1 answer
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,760 points
3,531 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
17,965 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,280 points
1,298 views
0 votes
1 answer

How to configure ulimit for Hbase using command line?

Hi, Increasing the file handles for the user ...READ MORE

answered May 29 in Big Data Hadoop by Gitika
• 25,420 points
39 views
0 votes
1 answer

How to start Command Line Interface in Zookeeper?

Hey, To start the CLI for zookeeper you can ...READ MORE

answered May 27 in Big Data Hadoop by Gitika
• 25,420 points
47 views