Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Three installation modes of Hadoop2.7.2

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

The oracle vm used by the virtual machine, and the installed operating system is centOs7

Local mode

1. Install JDK

Hadoop is to be installed and run on JVM, so JDK is always installed. So JVM must be installed.

1.1 download JDK

Download URL:

Http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html

Select a linux 64-bit system with a compression suffix of tar.gz

1.2 decompression

Copy the downloaded tar package to the / home/hadoop/Downloads folder, enter the Downloads folder, and then use the command directly:

Tar-zxvf jdk-8u111-linux-x64.gz

Extract it to the current folder, and then use the command to cut the jdk folder to the / software/ directory. Of course, you must first create the / software/ directory, and use the following command to create the jdk soft connection:

Ln-s jdk1.8.0_111 jdk

1.3 configure JDK,JRE environment variables

Use the vim command to modify the configuration file / etc/profile

Add at the end of the file:

Export JAVA_HOME=/software/jdk

Export PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH

Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Then use the soure / etc/profile command to make it effective:

1.4 Verification

Input: java-version

If the following information is displayed, the JDK configuration is successful.

[hadoop@s200 software] $java-version

Java version "1.8.0,111"

Java (TM) SE Runtime Environment (build1.8.0_111-b14)

Java HotSpot (TM) 64-Bit Server VM (build25.111-b14, mixed mode)

[hadoop@s200 software] $

two。 Install Hadoop

Local mode is installed here

2.1 download

Download address:

Http://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/

For version 2.7.2 I downloaded, click the hadoop-2.72/ link to go to the download page.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report