Hbase pseudo-distributed installation-Windows

Source: Internet
Author: User
Tags hadoop fs


Hbase pseudo-distributed installation-Windows 1: Environment windows XP sp3 www.2cto.com Hadoop1.0 (Hadoop installation) Hbase0.92.1JDK1.6 or above Cygwin 2: Hbase configuration. configure two file hbase-env.sh under the hadoop/conf directory, hbase-site.xml www.2cto.com. hbase-env.sh. configure the jdk installation directory (remember to remove the preceding notes) export JAVA_HOME =/cygdrive/d/Java/jdk1.6.0 _ 10 B. hbase decompressed root directory export HBASE_CLASSPATH =/cygdrive/d/hadoop/hbase-0.92.1 ②. hbase-site.xml: [html] <configuration> <property> <name> hbase. rootdir </ Name> <value> hdfs: // localhost: 9000/hbase </value> </property> </configuration> 3: Start 1. first start hadoop/bin/start-all.sh 2. start hbase first replace hadoop jar (hadoop-core-1.0.0.jar) under hbase/lib directory) be consistent with the jar under the hadoop installation directory www.2cto.com ssh localhost cd/cygdrive/d/hadoop/hbase-0.92.1 bin/start-hbase.sh Note: When installing HBase, try to be consistent with the Hadoop version. 3. test 1. add a record a in hbase. enter the hbase shell mode bin/hbase shell B. create 'test', 'data' c. add the records www.2cto.com put 'test', 'row1', 'Data: 1', 'value1 '2. view the startup sequence of bin/hadoop fs-ls/hbase in the hadoop File System: first start Hadoop --> then start Hbase, and then close the sequence: Disable Hbase --> and then disable Hadoop. Start-hbase.sh // start hbase shell // enter shell mode stop-all.sh // stop hbasehbase common shell commands: create Table 'table name', 'column name1 ', 'column name2', 'column namen' www.2cto.com add record put' table name', 'row name', 'column name :', 'value' view record get' table name', 'row name' view total records in the table count 'table name' delete record delete' table name', 'row name ', 'column name' to delete a table, you must shield the table before deleting the table. disable 'table name' 2. drop 'table name' view all records scan "table name" view all data in a column of a table scan "table name", ['column name: '] author java2000_wl

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.