In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how to achieve a stand-alone environment with simple configuration in HadoopHBase". In daily operation, I believe many people have doubts about how to achieve a stand-alone environment with simple configuration in HadoopHBase. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "how to achieve a stand-alone environment with simple configuration in HadoopHBase". Next, please follow the editor to study!
Start:
1. Download the hadoophbase distribution package on the Apache/Hadoop project website (hadoop.apache.org/), where the large version numbers of the two distributions must be the same, for example, both version 0.18: hadoop-0.18.2.tar.gzhbase-0.18.1.tar.gz
two。 Log in to the target server system (Suse10Linux) using root identity
First of all, install the java virtual machine, which is relatively simple, just find a green one to extract it. In this example, I use jdk that comes with IBMWAS6.1, and its home directory is / opt/IBM/WebSphere/AppServer/java. We only need to configure the environment variables of the system.
Edit the global environment variable file / etc/profile and add after the file
ExportJAVA_HOME=/opt/IBM/WebSphere/AppServer/java
ExportPATH=$JAVA_HOME:$PATH
After saving the profile file, use the $source/etc/profile command to reload profile, and then run $java-version in any directory to see if the javahome environment variable and path variable are loaded correctly.
In addition, check the / etc/hosts file to see if the host mapping exists, such as 127.0.0.1localhost or some other name, where the default configuration is localhost, and if you need to be distributed, the native needs to do namenode, so add all the host of datanode to this.
3. To create a hadoop user, $useraddhadoop can use $passwdhadoop to change the login password of the hadoop user.
4. Create a home directory for hadoop users, which you don't have to do if you plan to install hadoop/hbase elsewhere. Here we install hadoophbase in the / home/$ {username} directory by default.
$cd/home
$mkdirhadoop
Assign directory users to hadoop
$chownhadoophadoop
Change the permissions of the directory. We will make it bigger here. In fact, only 644 will be enough:
$chmod755hadoop
5. Log in to the system using the hadoop user, transfer the two downloaded distribution files to the / home/hadoop directory, and give them execution permissions:
$chmoda+xhadoop-0.18.2.tar.gz
$chmoda+xhbase-0.18.1.tar.gz
6. Extract the hadoop:
$tarzxvfhadoop-0.18.2.tar.gz
At this point, the study on "how to achieve a stand-alone environment with simple configuration of HadoopHBase" 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.