Hadoop environment construction (centos7)

1、 Use vmware to install centos7 and allow communication between the host and the virtual machine system, you can refer to the previous

https://www.cnblogs.com/xiximayou/p/12268005.html

https://www.cnblogs.com/xiximayou/p/12268879.html

2、 After the installed virtual machine system can communicate with the host, right-click the virtual machine in vmware and select Manage-Clone to clone a virtual machine

3、 In the cloned virtual machine: vim /etc/sysconfig/network-scripts/ifcfg-ens33, delete the UUID, and set a new ip address

4、 Set the host number: hostnamectl set-hostname hadoop02

5、 Bind the ip address and host number: vim /etc/hosts, add it

192.168.124.22 hadoop01 (this is the ip address and host number of the original virtual machine)

192.168.124.23 hadoop02 (this is the ip address and host number of this virtual machine)

6、 Similarly, set the host number in the original virtual machine: hostnamectl set-hostname hadoop01

Bind the IP address and host number: vim /etc/hosts, add it

192.168.124.22 hadoop01 (this is the ip address and host number of the original virtual machine)

192.168.124.23 hadoop02 (this is the ip address and host number of this virtual machine)

7、 Add in C:\Windows\System32\drivers\etc\hosts in windows

192.168.124.22 hadoop01

192.168.124.23 hadoop02

So whether it is in windows or centos01 and centos02, it can be connected by ping host name or ip address.

8、 Configure the permissions of the user created by yourself: vim /etc/sudoers, join

Both centos01 and centos02 need to be added.

9、 Configure the java environment

(1) Create a new module and software folder in the /opt directory:

mkdir module software

(2) Modify the owner of module and software:

chown xiximayou:xiximayou module/ software

(3) First check whether the jdk is installed in the system

Uninstall already installed:

yum -y remove above name

(4) Download a linux version 1.8 jdk under windows and upload it to the software folder using xftp5

(5) Go to the software directory and unzip it into the module folder: tart -zxvf jdkxxx -C /opt/module/. Then add java to the path:

vim /etc/profile, add at the end

After making the file effective: source /etc/profile

Check whether the configuration is successful:

10、 Install hadoop

(1) Download the bin version hadoop file, upload it to the software folder using xftp5, and unzip it to the module folder

tart -zxvf hadoopxxx -C /opt/module/

Then add hadoop to the path path: vim /etc/profile

Then enter source /etc/profile

Check whether the configuration is successful:

Finally, the download address of jdk and hadoop:

hadoop:

Link: https://pan.baidu.com/s/14AhhPYP8933tn-EfSX-i8Q
Extraction code: e90m

jdk1.8:

Link: https://pan.baidu.com/s/1g2MjHn6i3oELm1z7w99x1A
Extraction code: 8v09

Recommended Posts

Hadoop environment construction (centos7)
CentOS 7 install Hadoop 3.0.0
Linux environment construction: CentOs + Apache + MySQL + PHP
Compile Hadoop-2.7.6 under CentOS7.4
CentOS6.7 build LNMP environment
Centos7.6 build LNMP environment
lamp (centos7) installation lamp environment
Centos6.9 install npm environment
Build Hadoop in CentOS
Centos7 configure nodejs environment
Detailed explanation of building Hadoop environment on CentOS 6.5
Configure CentOS7 GPU environment
CentOS 7 build LNMP environment
[CentOS environment deployment] Java7/Java8 deployment under CentOS
Build docker environment under Centos6.5
CentOS 7 install JAVA environment (JDK 1.8)
SkyWalking study notes (CentOS environment)
Centos7 set up GitBook environment
CentOS 7.2 deploy Node.js development environment
CentOS install nginx+tomcat+java+mysql operating environment
Centos6 set up GitBook environment
CentOS environment installation of Docker
Centos7 deploys python3 virtual environment
Centos7.4 environment installation lamp-php7.0 tutorial
CentOS 7 configure Java language development environment
CentOS 8 (2)
CentOS 7 configure Ruby language development environment
Centos7 hadoop cluster installation and configuration
CentOS 7 configure php language development environment
CentOS7 compile and install L(A|N)MP environment
CentOS 8 (1)
Build Nginx environment on Linux (CentOS)
Configure python3 environment on centos7 and
[python] python virtual environment construction & GPU environment
Install Hadoop system environment on Ubuntu 18.04
FFmpeg environment deployment record under centos7
CentOS6.8 Chinese/English environment switching tutorial illustration
Centos7 builds hadoop 2.10 high availability (HA)
CentOS 7 configure Python language development environment
PPTP environment deployment record under Centos
Tomcat configuration JMX in centos 6.5 environment
The software environment required for Centos7 installation
Centos7.5 configuration java environment installation tomcat explanation
Centos-6.5 installation and deployment of LNMP environment
Tencent Cloud ubuntu 16.04 ZenTao integrated environment construction
(1) Centos7 installation to build a cluster environment
[PHP] Build a PHP operating environment under CentOS
Python and scrapy deployment in centos environment
GPU programming (1): CUDA8.0 environment construction under Ubuntu
Construction of Zabbix monitoring platform under CentOS7
CentOS big data experiment environment change record
Some Centos Python production environment deployment commands