NUTCH2.3 hadoop2.7.1 hbase1.0.1.1 solr5.2.1 deployment (2), hadoop2.7 Installation
Zookeeper
Precondition:
Hadoop 2.7.1
Hbase 1.0.1.1/hbase 0.98.13
192.168.1.106-> master
192.168.1.105-> slave/regionservers
Hbase deployment
Directly download the hbase binfile
There are also hbase 0.98.13 and hadoop2.7.1/hadoop 2.5.2 in hbase1.0.1.1. But
Nutch2.3 seems to be better suited to hbase 0.98.13.
1. Configure hbase-site.xml
<configuration><property> <name>hbase.zookeeper.quorum</name> <value>192.168.1.105,192.168.1.106</value></property><property> <name>hbase.master</name> <value>192.168.1.106:60000</value></property><property><name>hbase.tmp.dir</name><value>/disk2/hbase/hbase-1.0.1.1/tmp</value></property><property><name>hbase.zookeeper.property.dataDir</name><value>/disk2/hbase/hbase-1.0.1.1/zookeepertmp</value></property><property> <name>hbase.rootdir</name> <value>hdfs://192.168.1.106:9000/hbase</value></property><property> <name>hbase.cluster.distributed</name> <value>true</value></property></configuration>
2. Configure regionservers and use 192.168.1.105 as regionservers only.
True> regionservers
Echo 192.168.1.105> regionservers
3. Configure hbase-env.sh
Export JAVA_HOME =/disk2/java/jdk1.8.0 _ 45
4. Copy the entire hbases directory to another machine.
Scp-r hbase/192.168.1.105:/disk2/
5. Start
Bin/start-hbase.sh (start hadoop first)
6. Test and view
Http: // 192.168.1.106: 60010/master-status (0.98.13)
Http: // 192.168.1.106: 16010/master-status (1.0.1.1)
7. The most common problem during the process is that HMaster and HRegionServer cannot coexist, and often one of them exits:
Master. HMasterCommandLine: Master exiting
Java. lang. RuntimeException: HMaster Aborted
Solution:
Rm/tmp/hbase-root/-rf
Bin/hbase-cleanup.sh -- cleanAll
Bin/zookeepers. sh clear
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.