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

Interpretation of the module for load balancing using nginx

Table of contents Two modules for using nginx for...

Understanding of CSS selector weight (personal test)

Copy code The code is as follows: <style type=...

mysql method to recursively search for all child nodes of a menu node

background There is a requirement in the project ...

A brief discussion on the use of React.FC and React.Component

Table of contents 1. React.FC<> 2. class xx...

JavaScript to achieve simple drag effect

This article shares the specific code of JavaScri...

How to visualize sketched charts in Vue.js using RoughViz

introduce A chart is a graphical representation o...

Nginx content cache and common parameter configuration details

Use scenarios: The project's pages need to lo...

Operate on two columns of data as new columns in sql

As shown below: select a1,a2,a1+a2 a,a1*a2 b,a1*1...

vue-pdf realizes online file preview

This article example shares the specific code of ...

Example code of how to create a collapsed header effect using only CSS

Collapsed headers are a great solution for displa...

Introduction to encryption of grub boot program in Linux

Table of contents 1. What is grub encryption 2. g...

About debugging CSS cross-browser style bugs

The first thing to do is to pick a good browser. ...

3 ways to correctly modify the maximum number of connections in MySQL

We all know that after the MySQL database is inst...

How to make your own native JavaScript router

Table of contents Preface Introduction JavaScript...