Hbase installed on Ubuntu

1. Download hbase2.0.5 decompress and renamed hbase directory into / usr / local under ( Note permission )

sudo mv ~/hbase-2.0.5 /usr/local/hbase

2. Modify the owner of the directory / usr / local / under hbase folder

sudo chown -R current username / usr / local / hbase

3. Set Environment Variables

(1) enters sudo gedit ~ / .bashrc

#~/.bashrc

#hbase environment variables

export HBASE_HOME=/usr/local/hbase

export HBASE_CONF_DIR=$HBASE_HOME/conf

export HBASE_CLASS_PATH=$HBASE_CONF_DIR

export PATH=$PATH:$HBASE_HOME/bin

# Let environment variables to take effect

source ~/.bashrc

(2) Modify /usr/local/hbase/conf/hbase-env.sh ( note uncomment )

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

export HBASE_MANAGES_ZK=true

(3) Modify /usr/local/hbase/conf/hbase-site.xml

<configuration>

<property>

      <name>hbase.rootdir</name>

      <value>hdfs://127.0.0.1:9000/hbase</value>

   </property>

   <property>

      <name>hbase.cluster.distributed</name>

      <value>true</value>

   </property>

   <property>

        <name>hbase.master.info.port</name>

        <value>60010</value>

    </property>

   <property>

      <name>hbase.tmp.dir</name>

      <value>/usr/local/hbase/data/tmp</value>

   </property>

</configuration>

4. Start hadoop After start-hbase.sh start hbase

5.hbase shell command to enter hbase shell

6. The browser access

 

Guess you like

Origin www.cnblogs.com/wxd-ld/p/11116111.html