In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will give you a detailed explanation on how to install Hbase distributed. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
[hadoop@master conf] $pwd
/ home/hadoop/hbase/conf
[hadoop@master conf] $vim hbase-env.sh
[hadoop@master conf] $
Export HBASE_CLASSPATH=/home/hadoop/hadoop/conf
BASE_MANAGES_ZK=true
[hadoop@master conf] $vim hbase-site.xml
If you want to know where the default parameters are, you can
[hadoop@master hbase] $find. -name "* default*"
. / docs/hbase-default.xml
. / src/main/resources/hbase-default.xml
[hadoop@master hbase] $vim src/main/resources/hbase-default.xml
View
Hbase.rootdir
Hdfs://master:9000/hbase
Hbase.cluster.distributed
True
Copy the driver because you want to support hadoop
[hadoop@master lib] $ll hadoop-core-1.0.4.jar
-rw-r--r-- 1 hadoop hadoop 3929148 2014-01-11 hadoop-core-1.0.4.jar
At this time, it was found that it was hadoop 1.0.4, and we used 1.2.1.
This jar can be deleted and copied. Come here.
[hadoop@master lib] $mv hadoop-core-1.0.4.jar hadoop-core-1.0.4.sav
[hadoop@master lib] $cp / home/hadoop/hadoop/hadoop-core-1.2.1.jar.
[hadoop@master lib] $ll hadoop-core-1.
Hadoop-core-1.0.4.sav hadoop-core-1.2.1.jar
Pseudo-distributed ok here
[hadoop@master conf] $start-hbase.sh
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 6d:ef:a5:75:27:1d:7f:60:eb:ef:bc:dc:7c:4d:f7:a4.
Are you sure you want to continue connecting (yes/no)? Yes
Localhost: Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
Localhost: starting zookeeper, logging to / home/hadoop/hbase/logs/hbase-hadoop-zookeeper-master.out
Starting master, logging to / home/hadoop/hbase/logs/hbase-hadoop-master-master.out
Localhost: starting regionserver, logging to / home/hadoop/hbase/logs/hbase-hadoop-regionserver-master.out
[hadoop@master conf] $jps
5248 HRegionServer
5946 NameNode
5068 HMaster
5492 Jps
4953 HQuorumPeer
6189 JobTracker
6108 SecondaryNameNode
[hadoop@master conf] $hbase shell
HBase Shell; enter 'help' for list of supported commands.
Type "exit" to leave the HBase Shell
Version 0.94.16, r1557241, Fri Jan 10 20:10:24 UTC 2014
Hbase (main): 001VR 0 > status
1 servers, 0 dead, 2.0000 average load
Hbase (main): 002 status 0 > simple'
1 live servers
Master:60020 1414089200727
RequestsPerSecond=0, numberOfOnlineRegions=2, usedHeapMB=30, maxHeapMB=48
0 dead servers
Aggregate load: 0, regions: 2
[hadoop@master ~] $hadoop fs-ls /
Found 4 items
Drwxr-xr-x-hadoop supergroup 0 2014-10-24 02:33 / hbase
Drwxr-xr-x-hadoop supergroup 0 2014-10-15 07:42 / home
Drwxr-xr-x-hadoop supergroup 0 2014-10-15 08:38 / system
Drwxr-xr-x-hadoop supergroup 0 2014-10-15 08:33 / user
[hadoop@master ~] $
Stop hbase
Delete these contents
[hadoop@master ~] $hadoop fs-ls / hbase
Found 7 items
Drwxr-xr-x-hadoop supergroup 0 2014-10-24 02:33 / hbase/-ROOT-
Drwxr-xr-x-hadoop supergroup 0 2014-10-24 02:33 / hbase/.META.
Drwxr-xr-x-hadoop supergroup 0 2014-10-24 02:33 / hbase/.logs
Drwxr-xr-x-hadoop supergroup 0 2014-10-24 02:33 / hbase/.oldlogs
Drwxr-xr-x-hadoop supergroup 0 2014-10-24 02:33 / hbase/.tmp
-rw-r--r-- 2 hadoop supergroup 38 2014-10-24 02:33 / hbase/hbase.id
-rw-r--r-- 2 hadoop supergroup 3 2014-10-24 02:33 / hbase/hbase.version
Because the cluster has only one thing, like ID.
[hadoop@master ~] $stop-hbase.sh
Stopping hbase.
Localhost: stopping zookeeper.
[hadoop@master ~] $
[hadoop@master ~] $hadoop fs-rmr / hbase
Deleted hdfs://master:9000/hbase
[hadoop@master ~] $
This is the end of the article on "how to distribute and install Hbase". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.