Pseudo-distribution construction of HBase
Installed version: hbase-0.94.7-security.tar.gz
Download path: http://hbase.apache.org
1. Unzip, rename, set environment variables
1 2 3 tar-zxvf hbase-0.94.7-45 mv hbase-0.94.7-security.tar.gz hbase
#设置环境变量
1 vi/etc/ profile2 export hbase_home= source/etc/profile
2. Modify the configuration file
CD $HBASE _home/conf/
VI hbase-env.sh
Two places modified:
Export Java_home=
#HBase自己来管理zookeeper实例
Export Hbase_manages_zk=true
VI hbase-site.xml, add the following:
1<property>2<name>hbase.rootdir</name>3<value>hdfs://hadoop0:9000/hbase</value>4</property>5<property>6<name>hbase.cluster.distributed</name>7<value>true</value>8</property>9<property>Ten<name>hbase.zookeeper.quorum</name> One<value>hadoop0</value> A</property> -<property> -<name>dfs.replication</name> the<value>1</value> -</property>
Note: The host and port number of the _home/conf/hbase-site.xml is $HBASE Hbase.rootdir with $hadoop_home/conf/ Core-site.xml's fs.default.name host and port number are the same.
(optional)
The contents of VI regionservers are HADOOP0
3. Start command: start-hbase.sh
Note: Before starting HBase, make sure that Hadoop is healthy and can write to the file (non-secure mode).
4. Verify that:
(1) Implementation of JPS, the discovery of a new 3 Java processes, respectively, Hmaster,hregionserver,hquorumpeer
(2) Http://hadoop0:60010/master-status
HBase Pseudo-distributed construction