Book Image

Learning HBase

By : Shashwat Shriparv
Book Image

Learning HBase

By: Shashwat Shriparv

Overview of this book

Table of Contents (18 chapters)
Learning HBase
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Optimizing HBase


For some systems, memory-related settings that we discussed for Hadoop are common to HBase. So, let's discuss HBase-specific optimization in brief. We will also look at component-wise HBase optimization.

Let's start with Hadoop.

Hadoop

Add the following parameter to the hdfs-site.xml and hbase-site.xml files:

<property>
  <name>dfs.support.append</name>
  <value>true</value>
</property>

The preceding code will enable sync on HDFS, which is essential for durable HBase data synchronization and durability. After making this change, we need to restart the cluster.

The following code decides the number of open files on DataNode and should be kept high as HBase keeps a lot of files open. This must be kept to 4096 or above, according to the size of the HBase cluster and amount of data and operation being run on it:

<property>
  <name>dfs.datanode.max.xcievers</name>
  <description>dfs.datanode.max.transfer.threads in newer version...