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