Hadoop-2.7.1 Pseudo-Distribution--installation configuration HBase 1.1.2

Source: Internet
Author: User

Hbase-1.1.2:http://www.eu.apache.org/dist/hbase/stable/hbase-1.1.2-bin.tar.gz

Unzip to the \usr\local directory after download

Open the terminal into \usr\local\hbase-1.1.2:

CD \usr\local\hbase-1.1. 2

  1. modifying variables
    Vim conf/hbase-env.sh
    Add the following settings
    # Export JAVA_HOME=/USR/JAVA/JDK1. 6.0/export java_home=/usr/local/jdk1. 8 . 0_65# Extra Java CLASSPATH elements.  optional.# export Hbase_classpath=export Hbase_classpath=/usr/local/hadoop-2.7. 1/etc/hadoopexport hbase_manages_zk=true

    Vim Conf/hbase-site.xml
    Add a configuration
    <configuration>        <property>                <name>hbase.rootdir</name>                <value>hdfs: // localhost:9000/hbase</value>        </property>        <property>                <name>hbase.cluster.distributed</name>                <value >true</value>        </property></configuration>

  2. Start HBase (start Hadoop first)
    ./bin/start-hbase.sh
    Check the process with JPS after start
    3120 ResourceManager 3778 Hquorumpeer 2724 DataNode 3254 NodeManager  the Jps 2585 NameNode 3946 Hregionserver 3851 Hmaster 2955 Secondarynamenode

    Among them,Hquorumpeer,hregionserver,Hmaster is the HBase started after the more out of

  3. Test
    1) Enter Shell mode:./bin/hbase Shell
    2) New Table
    Create ' student ', ' info '
    3) Insert Record
    Put ' student ', ' 1 ', ' info:name ', ' Test '
    4) Search records according to Rowkey
    Get ' student ', ' 1 '
    5) List View all tables
    6) Delete Table
    Disable ' student '
    Drop ' student '
    7) View the HDFs file information for the table in the browser

Hadoop-2.7.1 Pseudo-Distribution--installation configuration HBase 1.1.2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.