Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Three installation modes of Hadoop2.7.2

Shulou Source: shulou.com Published: 2022-06-03 08:10:56 09月23日 Update

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.

Tags: File command configuration success folder mode directory system format input authentication information key two version process cluster facet generation login Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Microsoft macOS Shulou Information Huawei