Common considerations for building a Hadoop 3.2.0 cluster

Common considerations for building a Hadoop 3.2.0 cluster

One port changes

In version 3.2.0, the namenode page port is 9870 and the datanode management port is 8088, so these two ports need to be opened for web page access.

But there is no YARN_RESOURCEMANAGER_USER defined. Aborting operation

In hadoop-env.sh, you need to configure not only java-home but also the following user variables:

export JAVA_HOME=/usr/local/jdk/jdk1.8.0_191
export HDFS_NAMENODE_USER=root
export HDFS_DATANODE_USER=root
export HDFS_SECONDARYNAMENODE_USER=root
export YARN_RESOURCEMANAGER_USER=root
export YARN_NODEMANAGER_USER=root

3.2.0 version mapred-site.xml file configuration needs to add mapreduce.application.classpath attribute

<property> <name>mapreduce.application.classpath</name> <value> /usr/local/hadoop3/etc/hadoop, /usr/local/hadoop3/share/hadoop/common/*, /usr/local/hadoop3/share/hadoop/common/lib/*, /usr/local/hadoop3/share/hadoop/hdfs/*, /usr/local/hadoop3/share/hadoop/hdfs/lib/*, /usr/local/hadoop3/share/hadoop/mapreduce/*, /usr/local/hadoop3/share/hadoop/mapreduce/lib/*, /usr/local/hadoop3/share/hadoop/yarn/*, /usr/local/hadoop3/share/hadoop/yarn/lib/* </value> </property>

Four salave files are programmed into workers files, and the content configuration is the same

5. The startup is successful without error, but the most annoying problem is that the number of Live Nodes is 0

Solution steps:

First check the datanode log:

If this occurs, it means that there is a problem with the connection configuration. Check the core-site.xml configuration, which is used to configure the communication between datanode and namnode:

At a glance

There is a problem with the connection address configured here

hdfs should be configured as the address of namnode, not the address of datanode. All nodes have the same address. After configuration, restart is successful.

There are also reports online that /etc/hots resolution failed. This is also a reason. Just configure the domain name mapping. The important thing is to first look at the log analysis to find out what the problem is.

Last successful page

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Teach you how to build a Hadoop 3.x pseudo cluster on Tencent Cloud
  • Tutorial diagram of building a Hadoop high-availability cluster based on ZooKeeper
  • Methods and steps for building a Hadoop distributed cluster
  • How to build a Hadoop cluster environment with ubuntu docker
  • Detailed explanation of building hadoop and hbase cluster with docker
  • Detailed explanation of building Ubuntu version of Hadoop cluster
  • Detailed explanation of how to quickly build a Hadoop cluster environment using Docker from scratch
  • Detailed explanation of using docker to build a Hadoop distributed cluster

<<:  MySQL 8.0.22.0 download, installation and configuration method graphic tutorial

>>:  HTML basic structure_Powernode Java Academy

Recommend

mysql having usage analysis

Usage of having The having clause allows us to fi...

How to limit the number of concurrent connection requests in nginx

Introduction The module that limits the number of...

The latest graphic tutorial of mysql 8.0.16 winx64 installation under win10

In order to download this database, it takes a lo...

About the overlap of margin value and vertical margin in CSS

Margin of parallel boxes (overlap of double margi...

Detailed explanation of mysql.user user table in Mysql

MySQL is a multi-user managed database that can a...

MySQL query statement simple operation example

This article uses examples to illustrate the simp...

Detailed explanation of Nginx static file service configuration and optimization

Root directory and index file The root directive ...

Usage and execution process of http module in node

What is the role of http in node The responsibili...

Vue realizes the card flip effect

This article example shares the specific code of ...

Solve the problem of the container showing Exited (0) after docker run

I made a Dockerfile for openresty on centos7 and ...

Detailed explanation of Vue's seven value transfer methods

1. From father to son Define the props field in t...

Vue implements multi-grid input box on mobile terminal

Recently, the company has put forward a requireme...

How to query date and time in mysql

Preface: In project development, some business ta...

A brief understanding of MySQL SELECT execution order

The complete syntax of the SELECT statement is: (...