In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Install Hbase
1) download, pay attention to be compatible with the hadoop version, and choose the stable version is better.
Wget http://mirrors.hust.edu.cn/apache/hbase/hbase-0.98.5/hbase-0.98.5-hadoop2-bin.tar.gz
2) decompression
Tar-zxvf hbase-0.98.5-hadoop2-bin.tar.gz
3) modify conf/hbase-site.xml file
Hbase.rootdir hdfs://MasterServer:9000/hbase hbase.cluster.distributed true hbase.master hdfs://MasterServer:60000 hbase.zookeeper.quorum hadoop1,hadoop2,hadoop3
4) modify conf/regionservers file
MasterServer
SlaveServer
Note: if you do not want to use MasterServer as a HRegionServer, remove MasterServer
5) modify conf/hbase-env.sh file
Export JAVA_HOME=/usr/lib/jvm/jdk1.6/jdk1.6.0_27
Export HBASE_MANAGES_ZK=false # starts the specified ZooKeeper instead of the native ZooKeeper.
Export HBASE_HOME=/home/hadooper/hadoop/hbase-0.98.5
Export HADOOP_HOME=/home/hadooper/hadoop/hadoop-2.5.1
4. Copy the configured hbase to another node
Scp-r hbase-0.98.5 hadooper@SlaveServer:~/hadoop/
5. Enter hbase shell
Bin/hbase shell
HBase Shell; enter 'help' for list of supported commands.
Type "exit" to leave the HBase Shell
Version 0.98.5-hadoop2, rUnknown, Mon Aug 4 23:58:06 PDT 2014
View cluster status
Hbase (main): 001VR 0 > status
Table building test
Hbase (main): 002 create 0 > test' 'id'0 row (s) in 1.3530 seconds= > Hbase::Table-testhbase (main): 003seconds= 0 > listTABLE member test 2 row (s) in 0.0430 seconds= > ["member" "test"]
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.