Hadoop伪集群(单节点集群)安装(Centos7)
Posted keep-go-on
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hadoop伪集群(单节点集群)安装(Centos7)相关的知识,希望对你有一定的参考价值。
Hadoop 搭建单节点集群(伪集群)
目的
本文档介绍如何设置和配置单节点 Hadoop 安装,以便您可以使用 Hadoop MapReduce 和 Hadoop 分布式文件系统 (HDFS) 快速执行简单的操作。
学习接触Hadoop,但是生产环境不建议使用。
环境配置
环境 | 版本 |
---|---|
系统 | centos7.6 |
JDK | java11 |
Hadoop | 3.3.3 |
先决条件
支持的平台
- 支持 GNU/Linux 作为开发和生产平台。Hadoop 已在具有 2000 个节点的 GNU/Linux 集群上进行了演示。
- Windows 也是受支持的平台,但以下步骤仅适用于 Linux。要在 Windows 上设置 Hadoop,请参阅wiki 页面。
所需基础软件
- 必须安装 Java™。这里使用了java11,具体安装方式可以参考 : linux安装java11
- 如果要使用可选的启动和停止脚本,则必须安装 ssh 并且必须运行 sshd 才能使用管理远程 Hadoop 守护程序的 Hadoop 脚本。此外,建议同时安装 pdsh 以更好地管理 ssh 资源。
下载安装包
要获得 Hadoop 发行版,请从Apache 下载镜像之一下载最近的稳定版本。
以hadoop3.3.3为例 :
wget https://dlcdn.apache.org/hadoop/common/hadoop-3.3.3/hadoop-3.3.3.tar.gz --no-check-certificate
--no-check-certificate
声明不检查证书
解压安装包
tar -xvf hadoop-3.3.3.tar.gz
配置Hadoop单点集群
配置JDK Hadoop环境变量
编辑在解压包下的 etc/hadoop/hadoop-env.sh
编辑
export JAVA_HOME=/home/install/jdk/jdk-11
Hadoop命令说明
$ bin/hadoop
配置 core-site.xml
编辑 解压包下的 etc/hadoop/core-site.xml 文件,添加如下配置
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
配置 hdfs-site.xml
编辑 解压包下的 etc/hadoop/hdfs-site.xml 文件,添加如下配置
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
设置无密码SSH
创建ssh公私钥
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
以公钥创建授权key
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
授权
chmod 0600 ~/.ssh/authorized_keys
开始安装
格式化namenode
bin/hdfs namenode -format
正确的格式化命令执行结果见下方
执行nameNode格式化命令成功控制台输出
启动 NameNode 守护进程和 DataNode 守护进程
sbin/start-dfs.sh
启动成功访问势力
NameNode访问地址 : http://localhost:9870/
访问效果如下 :
执行nameNode格式化命令成功控制台输出 :
[root@localhost hadoop-3.3.3]# ./bin/hdfs namenode -format
WARNING: /home/install/hadoop/hadoop-3.3.3/logs does not exist. Creating.
2022-06-09 21:17:46,034 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = localhost.localdomain/127.0.0.1
STARTUP_MSG: args = [-format]
STARTUP_MSG: version = 3.3.3
STARTUP_MSG: classpath = /home/install/hadoop/hadoop-3.3.3/etc/hadoop:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/snappy-java-1.1.8.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jsr305-3.0.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/nimbus-jose-jwt-9.8.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-common-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/hadoop-annotations-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-net-3.6.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/accessors-smart-2.4.7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/j2objc-annotations-1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/curator-framework-4.2.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/netty-3.10.6.Final.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jersey-servlet-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jackson-databind-2.13.2.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/audience-annotations-0.5.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-servlet-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jsr311-api-1.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/dnsjava-2.1.7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-util-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-xml-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/hadoop-shaded-protobuf_3_7-1.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-compress-1.21.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/guava-27.0-jre.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-math3-3.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-admin-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jersey-server-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-webapp-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-security-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/paranamer-2.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-beanutils-1.9.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-server-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/stax2-api-4.2.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jaxb-api-2.2.11.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/metrics-core-3.2.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/gson-2.8.9.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-core-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerby-asn1-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/reload4j-1.2.18.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jsp-api-2.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jersey-json-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/avro-1.7.7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-client-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerby-xdr-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/token-provider-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/hadoop-shaded-guava-1.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-http-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jackson-annotations-2.13.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/checker-qual-2.5.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-cli-1.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-identity-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/httpcore-4.4.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/asm-5.0.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jackson-core-2.13.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/slf4j-api-1.7.36.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/json-smart-2.4.7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-crypto-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/curator-recipes-4.2.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerby-config-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-io-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerby-pkix-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-lang3-3.12.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/hadoop-auth-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jakarta.activation-api-1.2.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-text-1.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/woodstox-core-5.3.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jettison-1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/animal-sniffer-annotations-1.17.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jsch-0.1.55.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/zookeeper-jute-3.5.6.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jul-to-slf4j-1.7.36.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-simplekdc-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-io-2.8.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/curator-client-4.2.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-util-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-collections-3.2.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerby-util-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/kerb-server-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/zookeeper-3.5.6.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/failureaccess-1.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jetty-util-ajax-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/re2j-1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-codec-1.15.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-configuration2-2.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jcip-annotations-1.0-1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-daemon-1.0.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/jersey-core-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/httpclient-4.5.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/javax.servlet-api-3.1.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/lib/commons-logging-1.1.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/hadoop-registry-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/hadoop-common-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/hadoop-kms-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/hadoop-nfs-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/common/hadoop-common-3.3.3-tests.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/snappy-java-1.1.8.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jsr305-3.0.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/nimbus-jose-jwt-9.8.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-common-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/hadoop-annotations-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-net-3.6.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/accessors-smart-2.4.7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/j2objc-annotations-1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/curator-framework-4.2.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/netty-3.10.6.Final.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/netty-all-4.1.68.Final.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jersey-servlet-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jackson-databind-2.13.2.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/audience-annotations-0.5.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-servlet-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jsr311-api-1.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jaxb-impl-2.2.3-1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/dnsjava-2.1.7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-util-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-xml-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/hadoop-shaded-protobuf_3_7-1.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-compress-1.21.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/guava-27.0-jre.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-math3-3.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-admin-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jersey-server-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-webapp-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-security-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/paranamer-2.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-beanutils-1.9.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-server-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/stax2-api-4.2.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jaxb-api-2.2.11.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/okio-1.6.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jackson-xc-1.9.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/gson-2.8.9.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-core-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerby-asn1-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/reload4j-1.2.18.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/json-simple-1.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jersey-json-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/avro-1.7.7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-client-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/okhttp-2.7.5.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerby-xdr-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/token-provider-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/hadoop-shaded-guava-1.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-http-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jackson-annotations-2.13.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/checker-qual-2.5.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-identity-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/httpcore-4.4.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/asm-5.0.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jackson-core-2.13.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/json-smart-2.4.7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-crypto-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/curator-recipes-4.2.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerby-config-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-io-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerby-pkix-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-lang3-3.12.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/hadoop-auth-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jakarta.activation-api-1.2.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-text-1.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/woodstox-core-5.3.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jettison-1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/animal-sniffer-annotations-1.17.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jsch-0.1.55.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/zookeeper-jute-3.5.6.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jackson-jaxrs-1.9.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/leveldbjni-all-1.8.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-simplekdc-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-io-2.8.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/curator-client-4.2.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-util-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-collections-3.2.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerby-util-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/kerb-server-1.0.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/zookeeper-3.5.6.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/failureaccess-1.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jetty-util-ajax-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/re2j-1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-codec-1.15.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-configuration2-2.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jcip-annotations-1.0-1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/jersey-core-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/httpclient-4.5.13.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/javax.servlet-api-3.1.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-3.3.3-tests.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-client-3.3.3-tests.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-rbf-3.3.3-tests.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-rbf-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-httpfs-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-client-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-native-client-3.3.3-tests.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-nfs-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/hdfs/hadoop-hdfs-native-client-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.3.3-tests.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-common-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-core-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-nativetask-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-app-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-uploader-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jetty-plus-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jackson-jaxrs-base-2.13.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jetty-jndi-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/java-util-1.9.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/snakeyaml-1.26.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jetty-annotations-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/javax.websocket-client-api-1.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/fst-2.50.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/websocket-servlet-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jakarta.xml.bind-api-2.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/bcpkix-jdk15on-1.60.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/objenesis-2.6.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/asm-tree-9.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jackson-jaxrs-json-provider-2.13.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/metrics-core-3.2.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/aopalliance-1.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/asm-analysis-9.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jackson-module-jaxb-annotations-2.13.2.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/javax.websocket-api-1.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/javax-websocket-client-impl-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/javax.ws.rs-api-2.1.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jersey-guice-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/mssql-jdbc-6.2.1.jre7.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/websocket-common-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/websocket-api-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jetty-client-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jersey-client-1.19.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/javax.inject-1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/websocket-server-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/bcprov-jdk15on-1.60.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/geronimo-jcache_1.0_spec-1.0-alpha-1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/ehcache-3.3.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/asm-commons-9.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/HikariCP-java7-2.4.12.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jna-5.2.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/swagger-annotations-1.5.4.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/websocket-client-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/guice-4.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/javax-websocket-server-impl-9.4.43.v20210629.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/json-io-2.5.1.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/jline-3.9.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/lib/guice-servlet-4.0.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-tests-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-router-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-api-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-client-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-applications-mawo-core-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-common-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-timeline-pluginstorage-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-registry-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-services-core-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-common-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-nodemanager-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-services-api-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-3.3.3.jar:/home/install/hadoop/hadoop-3.3.3/share/hadoop/yarn/hadoop-yarn-server-web-proxy-3.3.3.jar
STARTUP_MSG: build = https://github.com/apache/hadoop.git -r d37586cbda38c338d9fe481addda5a05fb516f71; compiled by 'stevel' on 2022-05-09T16:36Z
STARTUP_MSG: java = 11
************************************************************/
2022-06-09 21:17:46,064 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
2022-06-09 21:17:46,153 INFO namenode.NameNode: createNameNode [-format]
2022-06-09 21:17:46,571 INFO namenode.NameNode: Formatting using clusterid: CID-863137eb-2929-46f6-8eab-5926a2d0b404
2022-06-09 21:17:46,667 INFO namenode.FSEditLog: Edit logging is async:true
2022-06-09 21:17:46,686 INFO namenode.FSNamesystem: KeyProvider: null
2022-06-09 21:17:46,687 INFO namenode.FSNamesystem: fsLock is fair: true
2022-06-09 21:17:46,687 INFO namenode.FSNamesystem: Detailed lock hold time metrics enabled: false
2022-06-09 21:17:46,729 INFO namenode.FSNamesystem: fsOwner = root (auth:SIMPLE)
2022-06-09 21:17:46,729 INFO namenode.FSNamesystem: supergroup = supergroup
2022-06-09 21:17:46,729 INFO namenode.FSNamesystem: isPermissionEnabled = true
2022-06-09 21:17:46,729 INFO namenode.FSNamesystem: isStoragePolicyEnabled = true
2022-06-09 21:17:46,730 INFO namenode.FSNamesystem: HA Enabled: false
2022-06-09 21:17:46,797 INFO common.Util: dfs.datanode.fileio.profiling.sampling.percentage set to 0. Disabling file IO profiling
2022-06-09 21:17:46,807 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit: configured=1000, counted=60, effected=1000
2022-06-09 21:17:46,807 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true
2022-06-09 21:17:46,809 INFO blockmanagement.BlockManager: dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000
2022-06-09 21:17:46,810 INFO blockmanagement.BlockManager: The block deletion will start around 2022 6月 09 21:17:46
2022-06-09 21:17:46,818 INFO util.GSet: Computing capacity for map BlocksMap
2022-06-09 21:17:46,818 INFO util.GSet: VM type = 64-bit
2022-06-09 21:17:46,820 INFO util.GSet: 2.0% max memory 1.9 GB = 39.0 MB
2022-06-09 21:17:46,820 INFO util.GSet: capacity = 2^22 = 4194304 entries
2022-06-09 21:17:46,919 INFO blockmanagement.BlockManager: Storage policy satisfier is disabled
2022-06-09 21:17:46,919 INFO blockmanagement.BlockManager: dfs.block.access.token.enable = false
2022-06-09 21:17:46,923 INFO blockmanagement.BlockManagerSafeMode: dfs.namenode.safemode.threshold-pct = 0.999
2022-06-09 21:17:46,923 INFO blockmanagement.BlockManagerSafeMode: dfs.namenode.safemode.min.datanodes = 0
2022-06-09 21:17:46,924 INFO blockmanagement.BlockManagerSafeMode: dfs.namenode.safemode.extension = 30000
2022-06-09 21:17:46,924 INFO blockmanagement.BlockManager: defaultReplication = 1
2022-06-09 21:17:46,924 INFO blockmanagement.BlockManager: maxReplication = 512
2022-06-09 21:17:46,924 INFO blockmanagement.BlockManager: minReplication = 1
2022-06-09 21:17:46,924 INFO blockmanagement.BlockManager: maxReplicationStreams = 2
2022-06-09 21:17:46,924 INFO blockmanagement.BlockManager: redundancyRecheckInterval = 3000ms
2022-06-09 21:17:46,924 INFO blockmanagement.BlockManager: encryptDataTransfer = false
2022-06-09 21:17:46,924 INFO blockmanagement.BlockManager: maxNumBlocksToLog = 1000
2022-06-09 21:17:46,941 INFO namenode.FSDirectory: GLOBAL serial map: bits=29 maxEntries=536870911
2022-06-09 21:17:46,941 INFO namenode.FSDirectory: USER serial map: bits=24 maxEntries=16777215
2022-06-09 21:17:46,941 INFO namenode.FSDirectory: GROUP serial map: bits=24 maxEntries=16777215
2022-06-09 21:17:46,941 INFO namenode.FSDirectory: XATTR serial map: bits=24 maxEntries=16777215
2022-06-09 21:17:46,949 INFO util.GSet: Computing capacity for map INodeMap
2022-06-09 21:17:46,949 INFO util.GSet: VM type = 64-bit
2022-06-09 21:17:46,949 INFO util.GSet: 1.0% max memory 1.9 GB = 19.5 MB
2022-06-09 21:17:46,949 INFO util.GSet: capacity = 2^21 = 2097152 entries
2022-06-09 21:17:47,029 INFO namenode.FSDirectory: ACLs enabled? true
2022-06-09 21:17:47,029 INFO namenode.FSDirectory: POSIX ACL inheritance enabled? true
2022-06-09 21:17:47,029 INFO namenode.FSDirectory: XAttrs enabled? true
2022-06-09 21:17:47,029 INFO namenode.NameNode: Caching file names occurring more than 10 times
2022-06-09 21:17:47,032 INFO snapshot.SnapshotManager: Loaded config captureOpenFiles: false, skipCaptureAccessTimeOnlyChange: false, snapshotDiffAllowSnapRootDescendant: true, maxSnapshotLimit: 65536
2022-06-09 21:17:47,033 INFO snapshot.SnapshotManager: SkipList is disabled
2022-06-09 21:17:47,036 INFO util.GSet: Computing capacity for map cachedBlocks
2022-06-09 21:17:47,036 INFO util.GSet: VM type = 64-bit
2022-06-09 21:17:47,036 INFO util.GSet: 0.25% max memory 1.9 GB = 4.9 MB
2022-06-09 21:17:47,036 INFO util.GSet: capacity = 2^19 = 524288 entries
2022-06-09 21:17:47,054 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.window.num.buckets = 10
2022-06-09 21:17:47,054 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.num.users = 10
2022-06-09 21:17:47,054 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.windows.minutes = 1,5,25
2022-06-09 21:17:47,057 INFO namenode.FSNamesystem: Retry cache on namenode is enabled
2022-06-09 21:17:47,057 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis
2022-06-09 21:17:47,058 INFO util.GSet: Computing capacity for map NameNodeRetryCache
2022-06-09 21:17:47,058 INFO util.GSet: VM type = 64-bit
2022-06-09 21:17:47,058 INFO util.GSet: 0.029999999329447746% max memory 1.9 GB = 599.7 KB
2022-06-09 21:17:47,058 INFO util.GSet: capacity = 2^16 = 65536 entries
2022-06-09 21:17:47,073 INFO namenode.FSImage: Allocated new BlockPoolId: BP-1456701301-127.0.0.1-1654780667068
2022-06-09 21:17:47,085 INFO common.Storage: Storage directory /tmp/hadoop-root/dfs/name has been successfully formatted.
2022-06-09 21:17:47,111 INFO namenode.FSImageFormatProtobuf: Saving image file /tmp/hadoop-root/dfs/name/current/fsimage.ckpt_0000000000000000000 using no compression
2022-06-09 21:17:47,193 INFO namenode.FSImageFormatProtobuf: Image file /tmp/hadoop-root/dfs/name/current/fsimage.ckpt_0000000000000000000 of size 399 bytes saved in 0 seconds .
2022-06-09 21:17:47,214 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
2022-06-09 21:17:47,230 INFO namenode.FSNamesystem: Stopping services started for active state
2022-06-09 21:17:47,230 INFO namenode.FSNamesystem: Stopping services started for standby state
2022-06-09 21:17:47,257 INFO namenode.FSImage: FSImageSaver clean checkpoint: txid=0 when meet shutdown.
2022-06-09 21:17:47,258 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at localhost.localdomain/127.0.0.1
************************************************************/
以上是关于Hadoop伪集群(单节点集群)安装(Centos7)的主要内容,如果未能解决你的问题,请参考以下文章