Git Product home page Git Product logo

hbase-start-guide's Introduction

HBASE START GUIDE (Standalone)

how to start setup and run hbase standalone for dev

Required

Installation

macOS

Install java via .dmg from download

Linux

# install java oracle 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

# set default java
sudo apt-get install oracle-java8-set-default

Set JAVA_HOME

set JAVA_HOME in your shell profile (.zshrc, .bashrc)

find java_home by command on macOS

/usr/libexec/java_home

macOS example

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home

Linux example

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

HBASE

Download HBASE Link

Download bin not src https://www.apache.org/dyn/closer.lua/hbase/2.0.2/hbase-2.0.2-bin.tar.gz

curl http://archive.apache.org/dist/hbase/2.0.2/hbase-2.0.2-bin.tar.gz -o hbase-2.0.2-bin.tar.gz
tar -xzvf hbase-2.0.2-bin.tar.gz
cd hbase-2.0.2

Config HBASE

hbase-env.sh

set JAVA_HOME in file conf/hbase-env.sh uncomment JAVA_HOME and set your JAVA_HOME

hbase-site.xml

change testuser to your user in your machine

best way to find your user just cd to ~(home) and run pwd for see path and copy that for replace /home/testuser

example in macOS when run pwd in home

/Users/username

in Linux

/home/username

example config hbase-site.xml

<configuration>
  <property>
    <name>hbase.rootdir</name>
    <value>file:///home/testuser/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/testuser/zookeeper</value>
  </property>
  <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
    <description>
      Controls whether HBase will check for stream capabilities (hflush/hsync).

      Disable this if you intend to run on LocalFileSystem, denoted by a rootdir
      with the 'file://' scheme, but be mindful of the NOTE below.

      WARNING: Setting this to false blinds you to potential data loss and
      inconsistent system state in the event of process and/or node failures. If
      HBase is complaining of an inability to use hsync or hflush it's most
      likely not a false positive.
    </description>
  </property>
</configuration>

Start HBASE

## start
./bin/start-hbase.sh
./bin/hbase shell

## stop 
./bin/stop-hbase.sh

hbase-start-guide's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.