On Red Hat family systems, Hadoop usually comes from Apache binary archives or a vendor distribution rather than the base OS repositories. A clean install needs Java 17, a dedicated Hadoop user, an unpacked Hadoop tree, and profile settings for command access.
Use package-managed Java from dnf where available, then install the Hadoop archive under /opt so upgrades can be staged by switching a symlink. Keep service configuration separate from the installation directory.
The local Hadoop runtime and command client should be installed before cluster daemon configuration, HDFS formatting, and YARN startup are handled by the follow-on cluster guides.
$ sudo dnf install java-17-openjdk-headless tar curl Installed: java-17-openjdk-headless tar curl
$ sudo useradd --system --home-dir /var/lib/hadoop --create-home --shell /bin/bash hadoop
$ curl -fLO https://downloads.apache.org/hadoop/common/hadoop-3.5.0/hadoop-3.5.0.tar.gz
$ sudo tar -xzf hadoop-3.5.0.tar.gz -C /opt
$ sudo ln -sfn /opt/hadoop-3.5.0 /opt/hadoop
export JAVA_HOME=/usr/lib/jvm/jre-17-openjdk export HADOOP_HOME=/opt/hadoop export PATH=$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH
$ /opt/hadoop/bin/hadoop version Hadoop 3.5.0 Source code repository https://github.com/apache/hadoop -r 000000000000