1. Download from Tsinghua image site hbase Installation file , The choice is stable Version of , The version number is hbase-1.2.5/

2. Decompress and put it in /usr/local Under the directory of

3. Modify the permissions

sudo chown -R hduser hadoop hbase-1.2.5/

4. Change the name of the folder to hbase

5. stay ~/.bashrc Add below , after source once

export PATH=$PATH:/usr/local/hbase/bin

Or in /etc/profile Add

export HBASE_HOME=/usr/local/hbase
export PATH=${HBASE_HOME}/bin:$PATH

6. Modify folder permissions

cd /usr/local
sudo chown -R hadoop ./hbase

7. Test if the installation is successful

hbase version
HBase 1.2.5...

8.HBase There are three kinds of Operation mode , standalone mode 、 Pseudo distributed mode 、 Distributed mode .

8.1. standalone mode

1. To configure /usr/local/hbase/conf/hbase-env.sh .

To configure Java environment variable , And add configuration HBASE_MANAGES_ZK by true, use vi Command to open and edit hbase-env.sh, The order is as follows

HBASE_MANAGES_ZK by true Used when Hbase Self contained zk, Use jps When you come to check, the process names are all preceded by h Of , such as :HRegionServer、HQuorumPeer、HMaster

vi /usr/local/hbase/conf/hbase-env.sh
export JAVA_HOME=/usr/lib/java8/jdk1.8.0_65
export HBASE_MANAGES_ZK=true

2. To configure /usr/local/hbase/conf/hbase-site.xml.

vi /usr/local/hbase/conf/hbase-site.xml

Start up HBase You need to set properties before hbase.rootdir, Is used to specify the HBase Where data is stored , Because if it's not set ,hbase.rootdir The default is /tmp/hbase-${user.name}, This means that every time you restart the system, you lose data . This is set to HBase Install under directory hbase-tmp The folder is (/usr/local/hbase/hbase-tmp), Add configuration as follows :

The following also specifies Hbase Bring their own zk The port of :2183, External zk The port of is 2182

<configuration>
<!-- <property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000</value>
</property>-->
<property>
<name>hbase.rootdir</name>
<value>file:///home/lintong/software/apache/hbase-1.2.6/hbase-tmp</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2183</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>

3. Next test run . First, change the directory to HBase The installation directory /usr/local/hbase; Restart HBase. The order is as follows :

cd /usr/local/hbase
bin/start-hbase.sh
bin/hbase shell

sudo bin/start-hbase.sh be used for start-up HBase

bin/hbase shell be used for open shell Command line mode , Users can input shell The command operation HBase database .

stop it HBase function , The order is as follows :

sudo bin/stop-hbase.sh

Ubuntu Lower installation hbase More articles about

  1. stay Ubuntu Lower installation ovs-dpdk

    stay Ubuntu Lower installation ovs-dpdk Reference material :https://software.intel.com/zh-cn/articles/using-open-vswitch-with-dpdk-on-ub ...

  2. Ubuntu Lower installation QT

    Ubuntu Lower installation QT The environment used in this article QT Library: qt-everywhere-opensource-src-4.7.4.tar.gz QT Creator: qt-creator-li ...

  3. Ubuntu Lower installation JDK And related configuration

    1. Check the system digits , Enter the following command getconf LONG_BIT 2. Download the corresponding JDK file , Here's what I downloaded jdk-8u60-linux-64.tar.gz 3. Create a directory as JDK Installation directory , Here you go ...

  4. Ubuntu Lower installation mod_python Report errors (GIT error )

    Ubuntu Lower installation mod_python3.4.1 The version reported the following error : writing byte-compilation script '/tmp/tmpE91VXZ.py' /usr/bin/pytho ...

  5. TODO:Ubuntu Lower installation Node

    TODO:Ubuntu Lower installation Node Node.js It's based on Chrome V8 Engine JavaScript Running environment .Node.js An event driver is used . Non-blocking type I/O Model of , Make it light and high ...

  6. Ubuntu Miscellany ——Ubuntu Lower installation VMware

    to Ubuntu, I don't know how long it will last , But I still have to work hard to record what I learned in the process of transferring to another war . Let's record this time ,Ubuntu How to install VMware. As far as I know ,Linux There are VirtualBox and VMwar ...

  7. Have a drink Caffe—— stay ubuntu Lower installation Caffe Frame and test

    Caffe It's a deep learning framework ...blablabla...... Caffe To be in ubuntu Lower installation 1. Installation dependency sudo apt-get install libatlas-base-dev sud ...

  8. Ubuntu Lower installation Mysql

    This is about using Ubuntu Lower installation MySql ubuntu Installation on mysql It's very simple. It can be done with just a few commands . 1. sudo apt-get install mysql-server   2. apt-get ...

  9. ubuntu Lower installation configuration OpenCV

    Cmake Installation I use it ubuntu-software Automatically download the installed . Ubuntu Lower installation OpenCV First, download and install the package , Then download OpenCV System :ubuntu16.04 OpenCV:2. ...

Random recommendation

  1. 【iOS Custom keyboard and keyboard switch 】 Detailed explanation

    [iOS Custom keyboard ] Detailed explanation Show the effect : One . Implementation of the protocol method code #import <UIKit/UIKit.h> // Create a custom keyboard protocol @protocol XFG_KeyBoardDel ...

  2. APP Competitive analysis of distribution channels

    One . Recent years , mobile phone APP The market is growing very fast , With the continuous upgrading of the hardware level of mobile phones , A huge influx of capital , More and more developers are moving from desktop platform development to mobile platform development , Facing tens of thousands of mobile phones APP, How to promote your own APP It's a problem ,APP ...

  3. flume ng Component introduction of

    1.channel 2.source 3.sink 4. Read the file directly Source, There are two ways ? 5.Channel There are several ways ? 6.Sink When setting up storage data , More data , Less often , How to deal with ? F ...

  4. ASPxGridView in DetailRow Use

    ASPxGridView Is a convenient data display control , But automatically binding the data we need , But sometimes , When there are too many data attributes , We don't have to give all the information to all the people , When someone needs this data, they can view it automatically , This is the time ...

  5. ubuntu Find the installation location of the software in

    ubuntu The software in can be installed through the software center of graphical interface , You can also use the command line apt-get install install . But where is the installed software ? This is followed by windows The path selection of software installation is different in different environments .ubuntu Zhongke ...

  6. JStorm And Storm Source code analysis ( Four )-- Balanced scheduler ,EvenScheduler

    EvenScheduler Same as DefaultScheduler equally , It's also implemented IScheduler Interface ,  As you can see from the following code : (ns backtype.storm.scheduler.EvenSche ...

  7. nake_api_protect Request protector —— Prevent requests from being swiped maliciously

    github : https://github.com/xjnotxj/wechat_interaction_auth -- nake_api_protect Interface request protector , according to frequency + frequency Of ...

  8. iOS String automatically calculates the width and height of the text

    According to the string how to automatically calculate the width and height of these characters : First , Need to know the style of the font to be displayed , Because different sizes of fonts occupy different sizes of space . secondly , To set limits , For example, a string of characters can be displayed in one line ( Wider ), It can also be displayed in multiple lines ...

  9. ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction terms of settlement

    One . Problem description : One of the data in a table on the colleague feedback line cannot be deleted , Everything else is normal , I got the censored data sql, Trying to perform , An error is as follows : mysql> delete from facebook_posts where ...

  10. js Chinese vs URL Transcoding and decoding

    1. escape and unescape escape() Can't be used directly for URL code , Its real function is to return a character Unicode Encoding value . use unicode The character set divides the specified string by 0-255 Coding outside . the ...