System |
Red Hat Linux 6.4 |
Hadoop version |
1.2.1 |
Hbase version |
0.94.16 |
Full distributed Installation overview for HBase:
1. Configure the hosts to ensure that the host names involved can be resolved to IP
2. Edit Hbase-env.xml
3. Edit Hbase-site.xml
4. Edit the Regionservers file, the file default content is localhost
/home/grid/hbase/conf/regionservers, add all the Slavenode to this file
5. HBase replication to other nodes
6. Start HBase
7. Verification
Note: The version I selected does not have a tolerance issue, so there is no need to overwrite the core jar package
Choose between Hadoop and hbase versions, there may be incompatibilities,
such as Hadoop 0.20
resolution version, Jar Package Conflict:
1) Delete Hbase/lib/hadoop-core-0.20-append-r1056497.jar(back up to another path in case of a case);
2) Copy Hadoop/hadoop-core-0.20.203.0.jar ( Note is under the hadoop root directory ),hadoop/ Lib/commons-collections-3.2.1.jar,hadoop/lib/commons-configuration-1.6.jar to hbase/lib .
setp 1 Download extract HBase
Step 2 Modifying the configuration file
First file:/home/zhang/hbase/hbase-0.94.16/conf/hbase-env.sh
Step 3 setting environment variables
Step 4 configuration/hbase/hbase-0.94.16/conf/hbase-site.xml
Template file path: ~/hbase/hbase-0.94.16/src/main/resources/hbase-default.xml
Copy the required content
Add the changes to the Hbase-site.xml file as follows:
Hbase.rootdir: Storing Data Directory
Hbase.rootdir
Hdfs://node01:9000/hbase
Open Distribution mode:
hbase.cluster.distributed
True
Set Temp file directory:
Hbase.tmp.dir
/home/criss/hbase/tmp
Add the Zookeeper node hostname:
Hbase.zookeeper.quorum
Node01,node02,node03
Hbase.zookeeper.property.dataDir
/home/criss/hbase/tmp/zookeeper
The property is from ZooKeeper ' s config zoo.cfg.
The directory where the snapshot is stored.
Step 5 Edit/home/grid/hbase/conf/regionservers, add all the Slavenode to this file
I didn't configure hmater in Hbase-site.xml, so here's the 3-machine that's been added.
Step6 copy HBase to another node machine and configure environment variables for other node machines
Scp-r Hbase/node03:/home/criss/hbase
Scp-r Hbase/node02:/home/criss/hbase
Step 7 start HBase
Step 8 Verification Hmaster
NODE01 Host:
Verify the NODE03 and NODE02 hosts:
Step 9 test HBase Shell
Create ' test ', ' data '
Disable ' Test '
Dorp ' Test '
You can view what is generated under the TMP folder:
HBase Distributed Installation Deployment process