Install Hbase

1. You should guarantee you have installed hadoop on your computers.

2. Download and uncompress the Hbase pakage by using commands:

  $wget {urlLink}

  $tar -zxvf file .tar.gz

3. Set environment variables:

  $export HBASE_PREFIX=/usr/local/hbase

  $export PATH=$PATH:$HBASE_PREFIX/bin

4. vim hbase-env.sh:

  export JAVA_HOME=/url/lib/jvm/java-8-oracle

5. vim hbase-site.xml

  <property>

    <name>hbase.rootdir</name>

    <value>hdfs://node13:10001</value>

  </property>

6. Start hadoop first, then hbase:

  You must start hadoop first. The order cannot be reversed.

7. Go to node14:60010. You will see the hbase management page.

8. Stop hadoop first, then hbase.

Notation: node13 is my hadoop master and node 14 is my hbaser master.

Reference:

[1] "Introduction to hbase" in YouTube.

上一篇:将页面上的内容导出到Excel


下一篇:java static关键字