In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to deploy Hbase stand-alone and pseudo-distributed". In daily operation, I believe many people have doubts about how to deploy Hbase stand-alone and pseudo-distributed. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to deploy Hbase stand-alone and pseudo-distributed". Next, please follow the editor to study!
Stand-alone deployment [hadoop@hadoop004 software] $wget http://archive.cloudera.com/cdh6/cdh/5/hbase-1.2.0-cdh6.12.0.tar.gz[hadoop@hadoop004 software] $tar-zxf hbase-1.2.0-cdh6.12.0.tar.gz-C ~ / app/ [hadoop@hadoop004 software] $cd ~ / app/hbase-1.2.0-cdh6.12.0/ [hadoop@hadoop004 conf] $vim hbase-env.shexport JAVA_HOME= / usr/java/jdk1.8.0_144/ [Hadoop @ hadoop004 hbase-1.2.0-cdh6.12.0] $mkdir-p tmp/hbasedata [hadoop@hadoop004 hbase-1.2.0-cdh6.12.0] $mkdir-p tmp/zkdata hbase.rootdir file:///home/hadoop/app/hbase-1.2.0-cdh6.12.0/hbasedata hbase.zookeeper.property.dataDir / home/hadoop/app/hbase-1.2. 0-cdh6.12.0/zkdata hbase.unsafe.stream.capability.enforce false [hadoop@hadoop004 conf] $vim ~ / .bash_profileexport HBASE_HOME=/home/hadoop/app/hbase-1.2.0-cdh6.12.0export PATH=$HBASE_HOME/bin:$PATH [hadoop@hadoop004 conf] $source ~ / .bash_profilehadoop@hadoop004 hbase-1.2.0-cdh6.12.0] $bin/start-hbase.sh [hadoop@hadoop004 hbase-1.2.0-cdh6. 12.0] $bin/hbase shell2019-06-05 17 main 53 INFO [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead Use io.native.lib.availableSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/home/hadoop/app/hbase-1.2.0-cdh6.12.0/lib/slf4j-log4j12-1.7.5.jar SLF4J SLF4J: Found binding in [jar:file:/home/hadoop/app/hadoop-2.6.0-cdh6.7.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5] .jar! / org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] HBase Shell Enter 'help' for list of supported commands.Type "exit" to leave the HBase ShellVersion 1.2.0-cdh6.12.0, rUnknown, Thu Jun 29 04:37:42 PDT 2017hbase (main): 001exit 0 > hbase (main): 002Viso 0* quit pseudo-distributed deployment
Compared with the official website
[hadoop@hadoop004 hbase-1.2.0-cdh6.12.0] $vim conf/hbase-site.xml hbase.unsafe.stream.capability.enforce true hbase.cluster.distributed true hbase.rootdir hdfs://hadoop004:9000/hbase hbase.zookeeper.quorum hadoop004:2181 [hadoop@hadoop004 hbase-1.2.0-cdh6.12.0] $vim conf/hbase-env.sh# add export HBASE_MANAGES_ZK=false
Start
[hadoop@hadoop004 hbase-1.2.0-cdh6.12.0] $bin/start-hbase.sh
Success!
Supplement
Pseudo-distributed installation is not plain sailing, but you must not panic when you encounter problems. Check the logs to troubleshoot the problems.
Problem recurrence
Start Hbase through the start-hbase.sh script, and then jps discovers that HMaster is not started
At this point, view the log output of HMaste
There is no useful information
[hadoop@hadoop004 hbase-1.2.0-cdh6.12.0] $tail-200 / home/hadoop/app/hbase-1.2.0-cdh6.12.0/logs/hbase-hadoop-master-hadoop004.log
The problem is that it appears in the red box.
Solution, in hbase-site.xml file
Got it!
In the beginning, the ZooKeeper that comes with Hbase is used by default when starting Hbase, but at this time, because my machine has already started ZooKeeper and occupied port 2181, HMaster also failed to start.
Solution
At this point, the study on "how to deploy Hbase stand-alone and pseudo-distributed" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.