In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article describes the installation of hadoop plus 0.94.16 hbase on the basis of version 1.2.1, hehe! Now it seems that these versions are a little out of date. At the time of writing, hadoop had just released version 2.3.0. If you are a novice or new to hadoop, take a look at my document and learn the basics step by step.
Since it is a hbase installation, there is no need to introduce the hadoop installation here (see my hadoop1.2.1 version installation post). Hbase0.94.16 originally supports the hadoop1.0.4 version but has been modified to support the hadoop1.2.1 version. Here we will follow the steps step by step.
1. Suppose you have installed hadoop1.2.1, and then we will download hbase-0.94.16.tar.gz.
2. Create a custom directory, such as / home/hbase, download it to / home/hbase and decompress it.
Decompress command: # tar-zxvf hbase-0.94.16.tar.gz
3. Modify the configuration file before installing hbase
3-1) enter the decompressed hbase folder, enter the conf directory to edit the hbase-env.sh file, enable the three configurations in the configuration file, remove the previous "#" sign, and then modify the configuration, as shown below:
# export JAVA_HOME=/usr/java/default (set the native jdk installation directory, here is my local path)
Export HBASE_Classpath=/etc/hadoop (specify the directory where the configuration file for the native hadoop installation is located, here is the path to my computer)
# export HBASE_MANAGES_ZK=true
(the default value is true. When Hbase starts, it also starts zookeeper, so that Hbase uses an existing Zookeep cluster that is not hosted by Hbase, which needs to be set to false.)
3-2) then modify the hbase-site.xml file in the conf directory and add the following configuration content:
Hbase.rootdir
Hdfs://localhost:9000/hbase (here to be the same as the hadoop configuration)
The hbase.rootdir attribute explains: this is used to set the shared directory of the region server and to persist the Hbase. The URL needs to be 'completely correct' and also contains the scheme of the file system. For example, to represent the'/ hbase' directory in hdfs, namenode runs on port 9090 of node1. Then you need to set it to hdfs://node1:49002/hbase. By default, Hbase is written to / tmp. If you do not change this configuration, the data will be lost when you restart. Default: file:///tmp/hbase-${user.name}/hbase
Hbase.cluster.distributed
False
The hbase.cluster.distributed attribute explains the mode in which Hbase runs. False is in stand-alone mode and true is in distributed mode. If false,Hbase and Zookeeper run in the same JVM. Default: false
Dfs.replication
1 (pseudo distribution is set to 1)
4. Let hbase0.94.16 support hadoop1.2.1
4-1) copy the hadoop-core-1.2.1.jar file under the hadoop home directory to the hbase/lib directory, and delete the old hadoop-core-1.0.4.jar file under the hbase/lib directory
4-2) then change the commons-collections-3.2.1.jar and commons-configuration- under the hadoop/lib directory
Copy the 1.6.jar file to the hbase/lib directory.
5. Start hbase
Go to the bin folder under the unzipped directory of hbase and execute the start-hbase.sh script or the shell command under linux
# cd / home/hbase/bin
# start-hbase.sh
(if an error is reported when starting hbase, it means that hbase is not installed correctly. It may be that the configuration file is not matched properly. Please check the configuration file carefully.)
When the startup is complete, we can enter commands to verify that all the required service processes are up. Enter the command:
# / usr/java/default/bin/jps
6. If the startup is successful, you can enter the hbase to operate.
# cd / home/hbase/bin
# hbase shell
Enter the command operating environment of hbase.
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: 207
*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.