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
- 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>
- 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
- 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