-
Notifications
You must be signed in to change notification settings - Fork 1
HBase
MostafaOjaghi edited this page Aug 29, 2019
·
19 revisions
NOTE: Hbase compatible version is 1.2.4
Download the 1.2.4 version from Link
Extract And Move To /usr/local/hbase/
export HBASE_HOME=/usr/local/hbase
export PATH=$PATH:$HBASE_HOME/bin
Then source ~/.bashrc
export JAVA_HOME="/usr/lib/jvm/jdk1.8.0_211"
Tell HBase whether it should manage it's own instance of Zookeeper or not.
export HBASE_MANAGES_ZK=false
<configuration>
<property>
<name>hbase.zookeeper.quorum</name>
<value>slave1,slave2,slave3</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value> // maybe localhost:9000 ?!
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>
put ip's of all your slaves in this file
chown -R hadoop:hadoop /usr/local/hbase/
export HBASE_SSH_OPTS="-p <num>"
create 's',{NAME=>'l',COMPRESSION=>'LZ4',DATA_BLOCK_ENCODING=>'FAST_DIFF'}
put jmx_exporter.jar and config.yaml in hbase bin directory and add the following command to the conf/hbase-env.sh
if [ `lsof -n -i:9060 | grep LISTEN | wc -l` == "0" ]; then
HBASE_OPTS="$HBASE_OPTS -javaagent:/usr/local/hbase/bin/jmx_exporter.jar=9060:/usr/local/hbase/bin/config.yaml"
fi