Para instalar o HBase, vá para o caminho
Etapa 1: Vá para o diretório mencionado abaixo
cd /usr/local/hadoop
Etapa 2: baixe o arquivo TAR em archive.cloudera.com
sudo wget http://archive.cloudera.com/cdh4/cdh/4/hbase-0.94.6-cdh4.4.0.tar.gz
Etapa 3: extraia o arquivo tar
tar -zxvf hbase-0.94.6-cdh4.4.0.tar.gz
Etapa 4: o arquivo baixado deve estar neste caminho
cd /usr/local/hadoop/hbase-0.94.6-cdh4.4.0
Etapa 5: definir o ambiente etc.
sudo nano /etc/environment.
Click enter and add the path files & jar files.
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-openjdk-amd64/bin:/usr/local/hadoop/hadoop-2.0.0-cdh4.4.0/bin: /usr/local/hadoop/hadoop-2.0.0-cdh4.4.0/sbin:/usr/local/hadoop/hive-0.10.0-cdh4.4.0/bin:/usr/local/hadoop/pig-0.11.0-cdh4.4.0/bin:/usr/local/hadoop/ hbase-0.94.6-cdh4.4.0/bin"
HADOOP_HOME="/usr/local/hadoop/hadoop-2.0.0-cdh4.4.0"
HIVE_HOME="/usr/local/hadoop/hive-0.10.0-cdh4.4.0"
HIVE_AUX_JARS_PATH="/usr/local/hadoop/hive-0.10.0-cdh4.4.0/lib/mysql-connector-java-5.1.18-bin.jar"
PIG_HOME="/usr/local/hadoop/pig-0.11.0-cdh4.4.0"
HADOOP_CONF_DIR="/usr/local/hadoop/hadoop-2.0.0-cdh4.4.0/etc/hadoop"
HBASE_HOME="/usr/local/hadoop/hbase-0.94.6-cdh4.4.0"
Etapa 4: definir o ambiente de origem
source /etc/environment
Etapa 5: Grave os valores de configuração abaixo em hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8020/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/hadoop/hbase/zookeeper</value>
</property>
</configuration>