In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
The main content of this article is "detailed explanation of the installation process of Hadoop". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "the detailed explanation of the installation process of Hadoop"!
Install JDK
Decompress the jdk package
Tar-zxvf / home/hadoop/software/jdk-7u80-linux-x64.tar.gz-C / usr/java/ 1 2
Configure jdk environment variables
Hadoop:root:/usr/java: > vi / etc/profile # / etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in / etc/bashrc # It's NOT a good idea to change this file unless you know what you # are doing. It's much better to create a custom.sh shell script in # / etc/profile.d/ to make custom changes to your environment, as this # will prevent the need for merging in future updates. # add path export JAVA_HOME=/usr/java/jdk1.7.0_80 export PATH=$JAVA_HOME/bin:$PATH # show path hadoop:root:/usr/java: > source / etc/profilehadoop:root:/usr/java: > java-versionjava version "1.7.0o80" Java (TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot (TM) 64-Bit Server VM (build 24.80-b11 Mixed mode) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 install Hadoop
Decompress Hadoop
Hadoop:hadoop:/home/hadoop/app: > tar-zxvf / home/hadoop/software/hadoop-2.6.0-cdh6.7.0.tar.gz-C / home/hadoop/app/
Configure the environment
Hadoop:hadoop:/home/hadoop: > vi .bash _ profile # .bash _ profile # Get the aliases and functions if [- f ~ / .bashrc]; then. ~ / .bashrc fi # User specific environment and startup programs export HADOOP_HOME=/home/hadoop/app/hadoop-2.6.0-cdh6.7.0 export PATH=$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH hadoop:hadoop:/home/hadoop: > source .bash _ profile hadoop:hadoop:/home/hadoop: > echo $HADOOP_HOME/ home/hadoop/app/hadoop-2.6.0-cdh6.7.0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 formatted Hadoop hdfs namenode-format 1 2
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.