hbase0.9.6 distributed installation

Hbase is fully distributed and installed. There are currently 3 machines, namely:
192.168.80.101 hadoop1 (as the master node of hbase)
192.168.80.102 hadoop2 (as the regionserver node of hbase)
192.168.80.103 hadoop3 (as the regionserver node of hbase) to

decompress hbase -0.94.2-security.tar.gz with rename #cd
/usr/local #tar -zxvf hbase-0.94.2-security.tar.gz #
mv hbase-0.94.2-security hbase
Modify /etc/profile file .
#vi /etc/profile
Add export HBASE_HOME=/usr/local/hbase
Modify export PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$HBASE_HOME/bin:$PATH
Save and exit #source /etc/profile
Modify $HBASE_HOME/conf /hbase-env.sh file
export JAVA_HOME=/usr/local/jdk
export HBASE_MANAGES_ZK=false Save and exit
Modify
$HBASE_HOME/conf/hbase-site.xml <configuration>
    <property>
























After the above configuration, you can start the hbase cluster with the bin/start-hbase.sh command. Note that before starting hbase, the hadoop and zookeeper clusters must be started first.

After the startup is successful, you can view the management page of hbase at http://hadoop1:60010.



Error expression: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j jar package conflict: respectively: file:/usr /hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class file:/usr/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar! /org/slf4j/impl/StaticLoggerBinder.class remove one of the jar packages and hbase installation is complete, an error will be reported when the table is created. The error message is as follows:














hbase(main):004:0> create 't1', {NAME => 'f1', VERSIONS => 5}
ERROR: Can't get master address from ZooKeeper; znode data == null
View the log as follows
org.apache. hadoop.ipc.RemoteException(org.apache.hadoop.ipc.RpcServerException):
                          Unknown out of band call #-2147483647

Solution:
The related hadoop jar package in the lib in hbase0.96.0 is hadoop-2.1.0-beta, So make the following modifications:
          <1> Delete all jar packages starting with hadoop in the lib package of hbase-0.96.0 of all nodes.                       
    rm -rf hadoop-*.jar
          <2> Remove hadoop-2.2.0-related Copy the jar package to the lib of hbase. The specific jar packages are:
hadoop-annotations-2.2.0.jar
hadoop-auth-2.2.0.jar
hadoop-common-2.2.0.jar
hadoop-hdfs-2.2.0.jar
hadoop-hdfs-2.2.0-tests.jar
hadoop-mapreduce-client-app-2.2.0.jar
hadoop-mapreduce-client-common-2.2.0.jar
hadoop-mapreduce-client-core-2.2.0.jar
hadoop-mapreduce-client-jobclient-2.2.0.jar
hadoop-mapreduce-client-jobclient-2.2.0-tests.jar
hadoop-mapreduce-client-shuffle-2.2.0.jar
hadoop-yarn-api-2.2.0.jar
hadoop-yarn-client-2.2.0.jar
hadoop-yarn-common-2.2.0.jar
hadoop-yarn-server-common-2.2.0.jar
hadoop-yarn-server-nodemanager-2.2.0.jar




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326343138&siteId=291194637