Hadoop基础之《(6)—Hadoop单机伪集群安装》

news2024/11/17 5:36:05

一、安装JDK

yum install java-1.8*

二、关闭防火墙

systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld

三、配置ip地址和主机名映射

vi /etc/hosts
加入:
192.168.1.1  hadoop001

四、配置免密登录

1、生成公私钥

ssh-keygen -t rsa

2、写入公钥到授权文件

cd /root/.ssh/
cat id_rsa.pub >> authorized_keys
chmod 600 authorized_keys

五、建立安装目录

mkdir -p /appserver/hadoop

六、下载安装包

cd /root
wget https://archive.apache.org/dist/hadoop/common/hadoop-3.3.4/hadoop-3.3.4.tar.gz

七、解压安装包

tar -zxvf tar -zxvf hadoop-3.3.4.tar.gz -C /appserver/hadoop/

解压到目录为:/appserver/hadoop/hadoop-3.3.4

Hadoop目录结构
bin  etc  include  lib  libexec  LICENSE-binary  licenses-binary  LICENSE.txt  logs  NOTICE-binary  NOTICE.txt  README.txt  sbin  share

1、bin目录
会用到hdfs、mapred、yarn命令

2、etc目录
提供大量的配置文件
core-site.xml,核心配置
hdfs-site.xml,和hdfs相关的
mapred-site.xml,和计算相关的
yarn-site.xml,和yarn相关的
workers,后期会用到

3、sbin目录
启动脚本
start-dfs.sh,启动HDFS
start-yarn.sh,启动yarn
mr-jobhistory-daemon.sh,启动历史服务器

4、share目录
学习资料和官方案例

八、hadoop的配置

1、修改hadoop-env.sh
配置JAVA_HOME,yum安装openjdk的路径在/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64

cd /appserver/hadoop/hadoop-3.3.4/etc/hadoop/
vi hadoop-env.sh
加入:
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64

2、测试hadoop环境

bin/hadoop version

Hadoop 3.3.4
Source code repository https://github.com/apache/hadoop.git -r a585a73c3e02ac62350c136643a5e7f6095a3dbb
Compiled by stevel on 2022-07-29T12:32Z
Compiled with protoc 3.7.1
From source with checksum fb9dd8918a7b8a5b430d61af858f6ec
This command was run using /appserver/hadoop/hadoop-3.3.4/share/hadoop/common/hadoop-common-3.3.4.jar

3、修改core-site.xml
(1)指定namenode的hdfs协议文件系统的通信地址
(2)指定hadoop存储临时文件的目录

vi core-site.xml

<configuration>
    <property>
        <!--指定 namenode 的 hdfs 协议文件系统的通信地址-->
        <name>fs.defaultFS</name>
        <value>hdfs://hadoop001:8020</value>
    </property>
    <property>
        <!--指定 hadoop 存储临时文件的目录-->
        <name>hadoop.tmp.dir</name>
        <value>/appserver/hadoop/tmp</value>
    </property>
</configuration>

4、修改hdfs-site.xml
(1)设置namenode节点数据保存目录
(2)设置datanode节点数据保存目录
(3)指定副本数量,在分布式文件系统中,数据通常会被冗余的存储多份,以保证可靠性和安全性,但是这里用的是伪分布式模式,节点只有一个,也有就只有一个副本

vi hdfs-site.xml

<configuration>
    <property>
        <!--设置namenode节点数据保存目录-->
        <name>dfs.namenode.name.dir</name>
        <value>/appserver/hadoop/namenode/data</value>
    </property>
    <property>
        <!--datanode节点数据保存目录-->
        <name>dfs.datanode.data.dir</name>
        <value>/appserver/hadoop/datanode/data</value>
    </property>
    <property>
        <!--指定副本数量-->
        <name>dfs.replication</name>
        <value>1</value>
    </property>
</configuration>

5、修改mapred-site.xml
(1)指定mapreduce作业运行在yarn上

vi mapred-site.xml

<configuration>
    <property>
        <!--指定 mapreduce 作业运行在 yarn 上-->
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
</configuration>

6、修改yarn-site.xml
(1)配置NodeManager上运行的附属服务。需要配置成mapreduce_shuffle后才可以在Yarn上运行MapReduce程序
(2)配置resourcemanager在哪个节点上

vi yarn-site.xml

<configuration>
    <property>
        <!--配置 NodeManager 上运行的附属服务。需要配置成 mapreduce_shuffle 后才可以在 Yarn 上运行 MapReduce 程序。-->
        <name>yarn.nodemanager.aux-services</name>
        <value>mapreduce_shuffle</value>
    </property>
    <property>
        <!--resourcemanager 的主机名-->
        <name>yarn.resourcemanager.hostname</name>
        <value>hadoop001</value>
    </property>
</configuration>

7、slaves文件
(1)在/appserver/hadoop/hadoop-3.3.4/etc/hadoop/下建立slaves,配置节点的主机名或IP地址
(2)单机版本,指定本机即可
(3)真集群环境下,所有从属节点上的DataNode服务和NodeManager服务都会被启动

vi slaves

hadoop001

九、首次启动格式化HDFS

cd /appserver/hadoop/hadoop-3.3.4/bin
./hdfs namenode -format

WARNING: /appserver/hadoop/hadoop-3.3.4/logs does not exist. Creating.
2023-01-30 00:24:08,201 INFO namenode.NameNode: STARTUP_MSG: 
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = myhost/192.168.1.1
STARTUP_MSG:   args = [-format]
STARTUP_MSG:   version = 3.3.4
STARTUP_MSG:   classpath = /appserver/hadoop/hadoop-3.3.4/etc/hadoop:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-admin-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/hadoop-auth-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jersey-core-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jsp-api-2.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jackson-annotations-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jersey-json-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/checker-qual-2.5.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-util-ajax-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/re2j-1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-util-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jsch-0.1.55.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-security-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jsr311-api-1.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/paranamer-2.3.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jul-to-slf4j-1.7.36.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerby-util-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-webapp-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/avro-1.7.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-util-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/hadoop-shaded-guava-1.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-daemon-1.0.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jackson-databind-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-net-3.6.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jakarta.activation-api-1.2.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-server-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jackson-core-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/netty-3.10.6.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-logging-1.1.3.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-compress-1.21.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/metrics-core-3.2.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-identity-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/audience-annotations-0.5.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-codec-1.15.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-text-1.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/guava-27.0-jre.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/reload4j-1.2.22.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-client-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-beanutils-1.9.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/failureaccess-1.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/zookeeper-jute-3.5.6.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerby-asn1-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-common-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/j2objc-annotations-1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/httpclient-4.5.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-collections-3.2.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/snappy-java-1.1.8.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerby-pkix-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-crypto-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/gson-2.8.9.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/javax.servlet-api-3.1.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jaxb-api-2.2.11.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerby-config-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/woodstox-core-5.3.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-http-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-io-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/slf4j-api-1.7.36.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jsr305-3.0.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jcip-annotations-1.0-1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-lang3-3.12.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/animal-sniffer-annotations-1.17.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-simplekdc-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/curator-recipes-4.2.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/dnsjava-2.1.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/zookeeper-3.5.6.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/asm-5.0.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jersey-server-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/curator-client-4.2.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/stax2-api-4.2.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/curator-framework-4.2.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/token-provider-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/accessors-smart-2.4.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/hadoop-shaded-protobuf_3_7-1.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerb-core-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-io-2.8.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jersey-servlet-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jettison-1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/kerby-xdr-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-servlet-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-math3-3.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/json-smart-2.4.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-configuration2-2.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-xml-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/httpcore-4.4.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/nimbus-jose-jwt-9.8.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/commons-cli-1.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/hadoop-annotations-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/jetty-server-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/hadoop-nfs-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/hadoop-registry-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/hadoop-common-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/hadoop-common-3.3.4-tests.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/common/hadoop-kms-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-admin-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/hadoop-auth-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jersey-core-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-classes-kqueue-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jackson-annotations-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-native-unix-common-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/okio-2.8.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jersey-json-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/checker-qual-2.5.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-util-ajax-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/re2j-1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jackson-jaxrs-1.9.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-redis-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-resolver-dns-native-macos-4.1.77.Final-osx-x86_64.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-util-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jsch-0.1.55.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-security-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-resolver-dns-classes-macos-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jsr311-api-1.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/paranamer-2.3.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerby-util-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-native-kqueue-4.1.77.Final-osx-aarch_64.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-handler-proxy-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-webapp-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/avro-1.7.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-util-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/hadoop-shaded-guava-1.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jaxb-impl-2.2.3-1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-haproxy-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jackson-databind-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-net-3.6.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jakarta.activation-api-1.2.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-server-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jackson-core-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-3.10.6.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-compress-1.21.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kotlin-stdlib-1.4.10.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-identity-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/audience-annotations-0.5.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-buffer-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-memcache-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-codec-1.15.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-text-1.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/guava-27.0-jre.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/reload4j-1.2.22.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-stomp-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-client-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-beanutils-1.9.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/failureaccess-1.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/zookeeper-jute-3.5.6.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-http2-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-sctp-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerby-asn1-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-udt-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/okhttp-4.9.3.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-common-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-xml-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kotlin-stdlib-common-1.4.10.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/j2objc-annotations-1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-rxtx-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/httpclient-4.5.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-collections-3.2.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-native-epoll-4.1.77.Final-linux-aarch_64.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-handler-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/snappy-java-1.1.8.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-dns-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerby-pkix-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-smtp-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-crypto-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/gson-2.8.9.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/javax.servlet-api-3.1.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-mqtt-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jaxb-api-2.2.11.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-native-epoll-4.1.77.Final-linux-x86_64.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerby-config-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/woodstox-core-5.3.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-http-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-io-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/json-simple-1.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-resolver-dns-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-all-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jsr305-3.0.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jcip-annotations-1.0-1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-lang3-3.12.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-classes-epoll-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-socks-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-common-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jackson-xc-1.9.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/animal-sniffer-annotations-1.17.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-simplekdc-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/curator-recipes-4.2.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/dnsjava-2.1.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/zookeeper-3.5.6.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-resolver-dns-native-macos-4.1.77.Final-osx-aarch_64.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/asm-5.0.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jersey-server-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/curator-client-4.2.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/leveldbjni-all-1.8.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/stax2-api-4.2.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/curator-framework-4.2.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/token-provider-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/accessors-smart-2.4.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/hadoop-shaded-protobuf_3_7-1.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerb-core-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-io-2.8.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-resolver-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jersey-servlet-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jettison-1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-codec-http-4.1.77.Final.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/kerby-xdr-1.0.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-servlet-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/netty-transport-native-kqueue-4.1.77.Final-osx-x86_64.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-math3-3.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/json-smart-2.4.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-configuration2-2.1.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-xml-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/httpcore-4.4.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/nimbus-jose-jwt-9.8.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/hadoop-annotations-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/jetty-server-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-3.3.4-tests.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-nfs-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-client-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-client-3.3.4-tests.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-httpfs-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-native-client-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-native-client-3.3.4-tests.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-rbf-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/hdfs/hadoop-hdfs-rbf-3.3.4-tests.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-common-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-uploader-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-nativetask-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-core-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-app-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.3.4-tests.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/geronimo-jcache_1.0_spec-1.0-alpha-1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/asm-tree-9.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jetty-plus-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/mssql-jdbc-6.2.1.jre7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jersey-guice-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/fst-2.50.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/javax.inject-1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/guice-4.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/snakeyaml-1.26.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/javax-websocket-client-impl-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/bcprov-jdk15on-1.60.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/aopalliance-1.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/swagger-annotations-1.5.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jetty-annotations-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/asm-analysis-9.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jna-5.2.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jackson-jaxrs-json-provider-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/asm-commons-9.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/metrics-core-3.2.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jackson-module-jaxb-annotations-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/websocket-servlet-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jline-3.9.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jakarta.xml.bind-api-2.3.2.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/HikariCP-java7-2.4.12.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/websocket-api-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/objenesis-2.6.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/json-io-2.5.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/javax.websocket-api-1.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/javax-websocket-server-impl-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/websocket-server-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/guice-servlet-4.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/websocket-common-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jetty-client-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/bcpkix-jdk15on-1.60.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jersey-client-1.19.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/javax.websocket-client-api-1.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/websocket-client-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/java-util-1.9.0.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/ehcache-3.3.1.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jetty-jndi-9.4.43.v20210629.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/jackson-jaxrs-base-2.12.7.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-api-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-web-proxy-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-client-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-registry-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-timeline-pluginstorage-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-nodemanager-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-common-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-tests-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-applications-mawo-core-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-services-core-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-router-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-server-common-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-3.3.4.jar:/appserver/hadoop/hadoop-3.3.4/share/hadoop/yarn/hadoop-yarn-services-api-3.3.4.jar
STARTUP_MSG:   build = https://github.com/apache/hadoop.git -r a585a73c3e02ac62350c136643a5e7f6095a3dbb; compiled by 'stevel' on 2022-07-29T12:32Z
STARTUP_MSG:   java = 1.8.0_362
************************************************************/
2023-01-30 00:24:08,217 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
2023-01-30 00:24:08,364 INFO namenode.NameNode: createNameNode [-format]
2023-01-30 00:24:09,371 INFO common.Util: Assuming 'file' scheme for path /appserver/hadoop/namenode/data in configuration.
2023-01-30 00:24:09,373 INFO common.Util: Assuming 'file' scheme for path /appserver/hadoop/namenode/data in configuration.
2023-01-30 00:24:09,383 INFO namenode.NameNode: Formatting using clusterid: CID-4adad145-e4cb-4b11-bb30-526830848a22
2023-01-30 00:24:09,441 INFO namenode.FSEditLog: Edit logging is async:true
2023-01-30 00:24:09,489 INFO namenode.FSNamesystem: KeyProvider: null
2023-01-30 00:24:09,492 INFO namenode.FSNamesystem: fsLock is fair: true
2023-01-30 00:24:09,494 INFO namenode.FSNamesystem: Detailed lock hold time metrics enabled: false
2023-01-30 00:24:09,502 INFO namenode.FSNamesystem: fsOwner                = root (auth:SIMPLE)
2023-01-30 00:24:09,502 INFO namenode.FSNamesystem: supergroup             = supergroup
2023-01-30 00:24:09,526 INFO namenode.FSNamesystem: isPermissionEnabled    = true
2023-01-30 00:24:09,526 INFO namenode.FSNamesystem: isStoragePolicyEnabled = true
2023-01-30 00:24:09,527 INFO namenode.FSNamesystem: HA Enabled: false
2023-01-30 00:24:09,674 INFO common.Util: dfs.datanode.fileio.profiling.sampling.percentage set to 0. Disabling file IO profiling
2023-01-30 00:24:09,701 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit: configured=1000, counted=60, effected=1000
2023-01-30 00:24:09,701 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true
2023-01-30 00:24:09,711 INFO blockmanagement.BlockManager: dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000
2023-01-30 00:24:09,711 INFO blockmanagement.BlockManager: The block deletion will start around 2023 Jan 30 00:24:09
2023-01-30 00:24:09,715 INFO util.GSet: Computing capacity for map BlocksMap
2023-01-30 00:24:09,715 INFO util.GSet: VM type       = 64-bit
2023-01-30 00:24:09,718 INFO util.GSet: 2.0% max memory 3.4 GB = 70.6 MB
2023-01-30 00:24:09,718 INFO util.GSet: capacity      = 2^23 = 8388608 entries
2023-01-30 00:24:09,899 INFO blockmanagement.BlockManager: Storage policy satisfier is disabled
2023-01-30 00:24:09,899 INFO blockmanagement.BlockManager: dfs.block.access.token.enable = false
2023-01-30 00:24:09,917 INFO blockmanagement.BlockManagerSafeMode: dfs.namenode.safemode.threshold-pct = 0.999
2023-01-30 00:24:09,918 INFO blockmanagement.BlockManagerSafeMode: dfs.namenode.safemode.min.datanodes = 0
2023-01-30 00:24:09,918 INFO blockmanagement.BlockManagerSafeMode: dfs.namenode.safemode.extension = 30000
2023-01-30 00:24:09,920 INFO blockmanagement.BlockManager: defaultReplication         = 1
2023-01-30 00:24:09,920 INFO blockmanagement.BlockManager: maxReplication             = 512
2023-01-30 00:24:09,920 INFO blockmanagement.BlockManager: minReplication             = 1
2023-01-30 00:24:09,920 INFO blockmanagement.BlockManager: maxReplicationStreams      = 2
2023-01-30 00:24:09,921 INFO blockmanagement.BlockManager: redundancyRecheckInterval  = 3000ms
2023-01-30 00:24:09,921 INFO blockmanagement.BlockManager: encryptDataTransfer        = false
2023-01-30 00:24:09,921 INFO blockmanagement.BlockManager: maxNumBlocksToLog          = 1000
2023-01-30 00:24:10,010 INFO namenode.FSDirectory: GLOBAL serial map: bits=29 maxEntries=536870911
2023-01-30 00:24:10,011 INFO namenode.FSDirectory: USER serial map: bits=24 maxEntries=16777215
2023-01-30 00:24:10,011 INFO namenode.FSDirectory: GROUP serial map: bits=24 maxEntries=16777215
2023-01-30 00:24:10,011 INFO namenode.FSDirectory: XATTR serial map: bits=24 maxEntries=16777215
2023-01-30 00:24:10,059 INFO util.GSet: Computing capacity for map INodeMap
2023-01-30 00:24:10,060 INFO util.GSet: VM type       = 64-bit
2023-01-30 00:24:10,060 INFO util.GSet: 1.0% max memory 3.4 GB = 35.3 MB
2023-01-30 00:24:10,060 INFO util.GSet: capacity      = 2^22 = 4194304 entries
2023-01-30 00:24:10,110 INFO namenode.FSDirectory: ACLs enabled? true
2023-01-30 00:24:10,110 INFO namenode.FSDirectory: POSIX ACL inheritance enabled? true
2023-01-30 00:24:10,110 INFO namenode.FSDirectory: XAttrs enabled? true
2023-01-30 00:24:10,111 INFO namenode.NameNode: Caching file names occurring more than 10 times
2023-01-30 00:24:10,125 INFO snapshot.SnapshotManager: Loaded config captureOpenFiles: false, skipCaptureAccessTimeOnlyChange: false, snapshotDiffAllowSnapRootDescendant: true, maxSnapshotLimit: 65536
2023-01-30 00:24:10,129 INFO snapshot.SnapshotManager: SkipList is disabled
2023-01-30 00:24:10,138 INFO util.GSet: Computing capacity for map cachedBlocks
2023-01-30 00:24:10,138 INFO util.GSet: VM type       = 64-bit
2023-01-30 00:24:10,139 INFO util.GSet: 0.25% max memory 3.4 GB = 8.8 MB
2023-01-30 00:24:10,139 INFO util.GSet: capacity      = 2^20 = 1048576 entries
2023-01-30 00:24:10,156 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.window.num.buckets = 10
2023-01-30 00:24:10,157 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.num.users = 10
2023-01-30 00:24:10,157 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.windows.minutes = 1,5,25
2023-01-30 00:24:10,165 INFO namenode.FSNamesystem: Retry cache on namenode is enabled
2023-01-30 00:24:10,165 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis
2023-01-30 00:24:10,168 INFO util.GSet: Computing capacity for map NameNodeRetryCache
2023-01-30 00:24:10,168 INFO util.GSet: VM type       = 64-bit
2023-01-30 00:24:10,169 INFO util.GSet: 0.029999999329447746% max memory 3.4 GB = 1.1 MB
2023-01-30 00:24:10,169 INFO util.GSet: capacity      = 2^17 = 131072 entries
2023-01-30 00:24:10,248 INFO namenode.FSImage: Allocated new BlockPoolId: BP-1636510195-173.249.200.110-1675056250223
2023-01-30 00:24:10,284 INFO common.Storage: Storage directory /appserver/hadoop/namenode/data has been successfully formatted.
2023-01-30 00:24:10,347 INFO namenode.FSImageFormatProtobuf: Saving image file /appserver/hadoop/namenode/data/current/fsimage.ckpt_0000000000000000000 using no compression
2023-01-30 00:24:10,567 INFO namenode.FSImageFormatProtobuf: Image file /appserver/hadoop/namenode/data/current/fsimage.ckpt_0000000000000000000 of size 399 bytes saved in 0 seconds .
2023-01-30 00:24:10,844 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
2023-01-30 00:24:10,916 INFO namenode.FSNamesystem: Stopping services started for active state
2023-01-30 00:24:10,917 INFO namenode.FSNamesystem: Stopping services started for standby state
2023-01-30 00:24:10,928 INFO namenode.FSImage: FSImageSaver clean checkpoint: txid=0 when meet shutdown.
2023-01-30 00:24:10,929 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at myhost/192.168.1.1
************************************************************/

十、添加root启动

vi /etc/profile

添加:
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

source /etc/profile

十一、进入到sbin目录下

1、启动dfs服务

./start-dfs.sh

Starting namenodes on [hadoop001]
Last login: Mon Jan 30 01:26:56 EST 2023 on pts/1
hadoop001: Warning: Permanently added 'hadoop001,192.168.1.1' (ECDSA) to the list of known hosts.
Starting datanodes
Last login: Mon Jan 30 01:31:55 EST 2023 on pts/1
localhost: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Starting secondary namenodes [myhost]
Last login: Mon Jan 30 01:31:57 EST 2023 on pts/1
myhost: Warning: Permanently added 'myhost' (ECDSA) to the list of known hosts.

2、启动yarn服务

./start-yarn.sh

Starting resourcemanager
Last login: Mon Jan 30 01:32:03 EST 2023 on pts/1
Starting nodemanagers
Last login: Mon Jan 30 01:35:43 EST 2023 on pts/1

十二、查看启动的服务

jps

26192 DataNode
26864 NodeManager
26054 NameNode
26408 SecondaryNameNode
26734 ResourceManager
30670 Jps

十三、管理页面

1、hadoop NameNode管理界面
http://192.168.1.1:9870/

2、yarn ResourceManager管理界面
http://192.168.1.1:8088/

参考资料:
https://blog.csdn.net/weixin_44433834/article/details/122408455
https://blog.csdn.net/cai750415222/article/details/116530976
https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/186885.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

设计模式第5式:装饰器模式

前言 当我们初学编程时&#xff0c;扩展程序功能一般习惯使用继承&#xff0c;使用继承有一些缺点&#xff0c;那就是容易造成类爆炸&#xff0c;并且容易继承一些不需要的特性。当我们学习完装饰器模式后&#xff0c;会发现善用组合会有比继承更好的效果。 正文 1、咖啡馆案…

全志A40i+Logos FPGA开发板(4核ARM Cortex-A7)硬件说明书(上)

前 言 本文档主要介绍TLA40iF-EVM工业评估板硬件接口资源以及设计注意事项等内容。 核心板的ARM端和FPGA端的IO电平标准一般为3.3V,上拉电源一般不超过3.3V,当外接信号电平与IO电平不匹配时,中间需增加电平转换芯片或信号隔离芯片。按键或接口需考虑ESD设计,ESD器件选型时需…

深入Java自动化探针技术的原理和实践

转至作者 蒋志伟&#xff1a;深入Java自动化探针技术的原理和实践 前言建议阅读时间 30~40分钟读者需要对Java JVM 一定了解&#xff0c;文章会系统的介绍Java 探针核心原理和技术实现&#xff0c;总结目前一些主流的框架方案。同时&#xff0c;接下来我会分享一篇关于 OpenTel…

你是如何学会正则表达式的?

前言 前言 正则表达式作为对字符串操作的一种逻辑公式&#xff0c;它使用一些特定字符及其组合组成“规则字符串”来对字符串进行过滤的操作&#xff0c;如在注册验证的时候我们就经常会用到正则表达式&#xff0c;但正则表达式的变式太多&#xff0c;我们不用完全的去记住每一…

XSSed通关教程

XSSed通关教程 首先整体浏览网站 进入Level1 Basic XSS 首先整体浏览网站 对源码进行分析 漏洞产生于如下代码段&#xff1a; echo($_GET[‘q’]); 直接将用户输入插入了html页面&#xff0c;没有任何过滤。 构造普通payload&#xff1a; <script>alert(/xss/)<…

剑指 Offer II 004. 只出现一次的数字

题目链接 剑指 Offer II 004. 只出现一次的数字 mid 题目描述 给你一个整数数组 nums&#xff0c;除某个元素仅出现 一次 外&#xff0c;其余每个元素都恰出现 三次 。请你找出并返回那个只出现了一次的元素。 示例 1&#xff1a; 输入&#xff1a;nums [2,2,3,2] 输出&…

LeetCode042之接雨水(相关话题:动态规划,单调栈)

题目描述 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图&#xff0c;计算按此排列的柱子&#xff0c;下雨之后能接多少雨水。 示例 1&#xff1a; 输入&#xff1a;height [0,1,0,2,1,0,1,3,2,1,2,1] 输出&#xff1a;6 解释&#xff1a;上面是由数组 [0,1,0,2,1,0,1,3,…

vue复习+vuex

一、vue.js的基本指令1、Vue的作用&#xff1a;快速的构建前端页面&#xff08;封装了html、css、js&#xff09;,以工程化的方式进行前端的开发2、Vue的核心&#xff1a;&#xff08;1&#xff09;组件化&#xff1a;&#xff08;2&#xff09;数据双向绑定&#xff08;3&…

linux基本功系列之sudo命令实战一

文章目录一.sudo命令介绍二. 语法格式及常用选项三. sudo配置文件详解3.1 sudo的配置文件3.2 配置文件注释3.3 sudo授权规则四. sudo常用参数实战 参考案例4.1 查看当前用户有哪些被sudo服务授权的命令4.2 结束密码的有效期4.3 限制用户的权限总结前言&#x1f680;&#x1f68…

3分钟解读ISO27001信息安全管理体系

一、什么是ISO27001 ISO27001是信息安全管理体系认证&#xff0c;对应国标号GB/T22080-2016&#xff0c;企业建立ISO27001体系能有效保证企业在信息安全领域的可靠性&#xff0c;降低企业泄密风险&#xff0c;更好的保存核心数据和重要信息。 信息安全对每个企业都是非常重要的…

Spring Cloud 高频面试题25连环炮!

今天给大家分享SpringCloud高频面试题。 Spring Cloud核心知识总结 下面是一张Spring Cloud核心组件关系图&#xff1a; 从这张图中&#xff0c;其实我们是可以获取很多信息的&#xff0c;希望大家细细品尝。 话不多说&#xff0c;我们直接开始 Spring Cloud 连环炮。 连环…

【算法基础】链表与邻接表

在机试、面试中,使用链表通常不是结构体构建Node,申请新节点new操作,因为速度过慢,申请10w量级的空节点就已经超时了。因为在算法竞赛中,常常使用 一、数组模拟单链表【⭐邻接表(n个链表)⭐】 邻接表(n个链表)最主要的应用是存储图和存储树。 建表、插入、删除操作…

ThinkPad R490电脑开机之后无线重启怎么重装系统?

ThinkPad R490电脑开机之后无线重启怎么重装系统&#xff1f;有用户使用ThinkPad R490电脑正常开机的情况下&#xff0c;出现了系统自动重启的情况&#xff0c;无法正常的使用电脑了。遇到这个情况怎么去重装一个新的电脑系统&#xff0c;恢复正常使用呢&#xff1f;来看看以下…

17. datetime模块

python 标准库中的 datetime 模块提供了和日期和时间相关的类。 类功能datetime.date以年、月和日表示日历中的日期datetime.time以小时、分钟和秒表示一天中的时间datetime.datetime以年、月、日、小时、分钟和秒表示日期和时间datetime.timedelta表示一个时间段&#xff0c;…

什么蓝牙耳机便宜音质好?平价高音质蓝牙耳机推荐

随着蓝牙耳机的品类越来越多&#xff0c;人们在选择时有了更大的空间。作为蓝牙耳机选择的两大参考要素&#xff0c;性价比和音质的出现频率相对来说会比较高。那么&#xff0c;什么蓝牙耳机便宜音质好&#xff1f;下面&#xff0c;我来给大家推荐几款平价高音质的蓝牙耳机&…

初探机器学习-梯度下降法求解最优值

文章目录什么是模型如何训练模型1、拟定假设函数2、损失函数和代价函数3、关于导数和偏导数4、使用梯度下降法求解最优值5、回顾总结三、衡量一个模型的好坏模型验证1、简单交叉验证2、K 折交叉验证3、留一交叉验证过拟合什么是模型 只要是从事IT行业&#xff0c;想必都对机器…

基于Android的房屋租赁系统

需求信息&#xff1a; 房东客户端&#xff1a; 1&#xff1a;注册登录&#xff1a;使用分配的账号进行登录&#xff1b; 2&#xff1a;发布房源&#xff1a;房主可以发布自己的房源信息&#xff1b; 3&#xff1a;预约信息&#xff1a;查看租客的预约看房信息&#xff1b; 4&am…

sqllineage解析FineBI数据集导入Datahub生成血缘

需求 当前数仓架构流程图如下图所示&#xff0c;不支持端到端数据血缘&#xff0c;数据异常排查及影响分析比较被动&#xff0c;需要端到端数据血缘及元数据管理。 业务系统&#xff1a;各种制造业业务系统&#xff08;高速迭代、重构、新建中&#xff09; 数仓开发平台&…

jChartFX Plus JavaScript 7.6.7367 Crack

jChartFX Plus包括 jChartFX 的所有功能和其他画廊类型、高级商业智能功能和用于您的 Web 或移动应用程序的仪表板功能。新的 jChartFX Plus 为您提供额外的能力来开发完整的商业仪表板和商业智能应用程序 在最新的 jChartFX Plus 中&#xff0c;我们引入了象形图和象形图条控件…

仿牛客论坛项目Docker部署(ElasticSearch+Redis+Kafka+MySQL)

仿牛客论坛项目项目部署(docker)1.ElasticSearch安装本体安装ik插件2.Zookeeper3.Kafka测试是否启动成功4.MySQL启动mysql测试载入数据5.Redis6.DockerFile构建Java8项目部署成功参考项目部署(docker) 1.ElasticSearch 安装本体 mkdir -p /opt/docker/es/plugins #创建插件文…