毛毛爱心神 2022-06-06 14:33 采纳率: 0%
浏览 80

hdfs 文件读取不到

使用hdfs存储文件,文件fsimage读取有问题,单节点,dn上文件全在,但是nn上bolck显示0,文件数显示600多万

nn启动日志:2022-06-06 10:30:20,256 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: STARTUP_MSG:

STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = VM_9_5_centos/10.1.9.5
STARTUP_MSG: args = []
STARTUP_MSG: version = 2.7.2
STARTUP_MSG: classpath = /opt/xvdb/hadoop-2.7.x/etc/hadoop:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jetty-6.1.26.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common
/lib/protobuf-java-2.5.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/curator-framework-2.7.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/guava-11.0.2.jar
:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/apacheds-i18n-2.0.0-M15.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/hamcrest-core-1.3.jar:/opt/xvdb/hadoop-2.7.x
/share/hadoop/common/lib/jersey-server-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-httpclient-3.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib
/jersey-json-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jsr305-3.0.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/hadoop-annotations-2.7.2.jar:/opt/x
vdb/hadoop-2.7.x/share/hadoop/common/lib/hadoop-auth-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/opt/xvdb/hadoop-2.7.x/share/
hadoop/common/lib/commons-codec-1.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jsp
-api-2.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-math3-3.1.1.jar:/opt/xvdb/hado
op-2.7.x/share/hadoop/common/lib/avro-1.7.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/servlet-api-2.5.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jacks
on-core-asl-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/curator-client-2.7.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/gson-2.2.4.jar:/opt/xvdb/
hadoop-2.7.x/share/hadoop/common/lib/slf4j-api-1.7.10.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/co
mmon/lib/xmlenc-0.52.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/curator-recipes-2.7.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-io-2.4.jar:/op
t/xvdb/hadoop-2.7.x/share/hadoop/common/lib/java-xmlbuilder-0.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/paranamer-2.3.jar:/opt/xvdb/hadoop-2.7.x/share/hadoo
p/common/lib/commons-lang-2.6.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/stax-api-1.0-2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jetty-util-6.1.26.ja
r:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/junit-4.11.jar:/opt/xvdb/hadoop-2.7.x/share/ha
doop/common/lib/netty-3.6.2.Final.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-cli-1.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/httpcore-4.2.5.
jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/activation-1.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/opt/xvdb/ha
doop-2.7.x/share/hadoop/common/lib/asm-3.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/api-asn1-api-1.0.0-M20.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib
/commons-beanutils-core-1.8.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/xz-1.0.jar:/opt/x
vdb/hadoop-2.7.x/share/hadoop/common/lib/htrace-core-3.1.0-incubating.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jets3t-0.9.0.jar:/opt/xvdb/hadoop-2.7.x/share/
hadoop/common/lib/commons-configuration-1.6.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-collections-3.2.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common
/lib/jersey-core-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/log4j-1.2.17.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jsch-0.1.42.jar:/opt/xvdb/hadoo
p-2.7.x/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-logging-1.1.3.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/
lib/zookeeper-3.4.6.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/mockito-all-1.8.5.jar:/o
pt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-compress-1.4.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/api-util-1.0.0-M20.jar:/opt/xvdb/hadoop-2.7.x/sh
are/hadoop/common/lib/commons-digester-1.8.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/commons-net-3.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/jettis
on-1.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/lib/httpclient-4.2.5.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/hadoop-nfs-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/s
hare/hadoop/common/hadoop-common-2.7.2-tests.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/common/hadoop-common-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs:/opt/xvdb/
hadoop-2.7.x/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/g
uava-11.0.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/jsr305-3.0.0.jar:/opt/xvdb/hadoop-2.7.x
/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/se
rvlet-api-2.5.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/opt/xvdb/hadoo
p-2.7.x/share/hadoop/hdfs/lib/commons-io-2.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/commons-lang-2.6.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/jetty-u
til-6.1.26.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/xercesImpl-2.9.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/opt/xvdb/hadoop-2.
7.x/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/leveldbjni-all-1.8.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/asm-3.2.
jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/xml-apis-1.3.04.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/htrace-core-3.1.0-incubating.jar:/opt/xvdb/hadoop-2.7
.x/share/hadoop/hdfs/lib/netty-all-4.0.23.Final.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/log4j
-1.2.17.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/opt/xvdb/had
oop-2.7.x/share/hadoop/hdfs/hadoop-hdfs-nfs-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/hadoop-hdfs-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/hdfs/hadoop-hd
fs-2.7.2-tests.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jetty-6.1.26.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/opt/xvdb/hadoop-
2.7.x/share/hadoop/yarn/lib/guava-11.0.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jersey-server-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jersey-jso
n-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jsr305-3.0.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/opt/xvdb/hadoop-2.7.x/share
/hadoop/yarn/lib/commons-codec-1.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jackson-
xc-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/servlet-api-2.5.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/opt/xvdb/hadoo
p-2.7.x/share/hadoop/yarn/lib/javax.inject-1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/commons-io-2.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/commons-l
ang-2.6.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jersey-client-1.9.jar:/opt/xvdb/hadoop-2.7.x/s
hare/hadoop/yarn/lib/jetty-util-6.1.26.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/aopallian
ce-1.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/commons-cli-1.2.jar:/opt/xvdb/hadoop-2.7.x/s
hare/hadoop/yarn/lib/activation-1.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/asm-3.2.jar:/o
pt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/xz-1.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/j
ersey-guice-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/commons-collections-3.2.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jersey-core-1.9.jar:/opt/xv
db/hadoop-2.7.x/share/hadoop/yarn/lib/log4j-1.2.17.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/com
mons-logging-1.1.3.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/zookeeper-3.4.6-tests.jar:/opt/xvd
b/hadoop-2.7.x/share/hadoop/yarn/lib/guice-3.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/lib
/jettison-1.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-server-common-2.
7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-api-2.7.2.jar:/opt/xvdb/
hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-registry-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-server-tests-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/
hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-client-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share
/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.7.2.jar:/opt/x
vdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-common-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.7.2.jar:/opt/xvdb/hadoop-
2.7.x/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/opt/xvdb/hadoop-2.7.
x/share/hadoop/mapreduce/lib/hamcrest-core-1.3.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduc
e/lib/hadoop-annotations-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/jackson-ma
pper-asl-1.9.13.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar:/opt
/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/javax.inject-1.jar:/opt/xvdb/hadoop-2.7.x/share
/hadoop/mapreduce/lib/commons-io-2.4.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/junit-4.
11.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/opt/xvdb/hadoop-2
.7.x/share/hadoop/mapreduce/lib/leveldbjni-all-1.8.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/asm-3.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/
xz-1.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/opt/xvdb/hadoo
p-2.7.x/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/guice-3.0.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/lib/c
ommons-compress-1.4.1.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.2-tests.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce
/hadoop-mapreduce-client-shuffle-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoo
p/mapreduce/hadoop-mapreduce-client-hs-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/shar
e/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/shar
e/hadoop/mapreduce/hadoop-mapreduce-client-app-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.7.2.jar:/opt/xvdb/hadoop-2.7.x/
contrib/capacity-scheduler/.jar:/opt/xvdb/hadoop-2.7.x/contrib/capacity-scheduler/.jar:/opt/xvdb/hadoop-2.7.x/contrib/capacity-scheduler/*.jar
STARTUP_MSG: build = https://git-wip-us.apache.org/repos/asf/hadoop.git -r b165c4fe8a74265c792ce23f546c64604acf0e41; compiled by 'jenkins' on 2016-01-26T00:08Z
STARTUP_MSG: java = 1.7.0_79

2022-06-06 10:30:20,265 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
2022-06-06 10:30:20,270 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: createNameNode []
2022-06-06 10:30:20,619 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
2022-06-06 10:30:20,768 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2022-06-06 10:30:20,768 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system started
2022-06-06 10:30:20,772 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: fs.defaultFS is hdfs://127.0.0.1:9000
2022-06-06 10:30:20,772 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: Clients are to use 127.0.0.1:9000 to access this namenode/service.
2022-06-06 10:30:21,064 INFO org.apache.hadoop.hdfs.DFSUtil: Starting Web-server for hdfs at: http://0.0.0.0:50070
2022-06-06 10:30:21,122 INFO org.mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2022-06-06 10:30:21,218 INFO org.apache.hadoop.security.authentication.server.AuthenticationFilter: Unable to initialize FileSignerSecretProvider, falling back to use
random secrets.
2022-06-06 10:30:21,225 INFO org.apache.hadoop.http.HttpRequestLog: Http request log for http.requests.namenode is not defined
2022-06-06 10:30:21,231 INFO org.apache.hadoop.http.HttpServer2: Added global filter 'safety' (class=org.apache.hadoop.http.HttpServer2$QuotingInputFilter)
2022-06-06 10:30:21,235 INFO org.apache.hadoop.http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter
) to context hdfs
2022-06-06 10:30:21,235 INFO org.apache.hadoop.http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter
) to context logs
2022-06-06 10:30:21,235 INFO org.apache.hadoop.http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter
) to context static
2022-06-06 10:30:21,265 INFO org.apache.hadoop.http.HttpServer2: Jetty bound to port 50070
2022-06-06 10:30:21,265 INFO org.mortbay.log: jetty-6.1.26
2022-06-06 10:30:21,425 INFO org.mortbay.log: Started HttpServer2$SelectChannelConnectorWithSafeStartup@0.0.0.0:50070
2022-06-06 10:30:21,458 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Only one image storage directory (dfs.namenode.name.dir) configured. Beware of data l
oss due to lack of redundant storage directories!
2022-06-06 10:30:21,458 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Only one namespace edits storage directory (dfs.namenode.edits.dir) configured. Bewar
e of data loss due to lack of redundant storage directories!
2022-06-06 10:30:21,502 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: No KeyProvider found.
2022-06-06 10:30:21,502 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: fsLock is fair:true
2022-06-06 10:30:21,545 INFO org.apache.hadoop.hdfs.server.blockmanagement.DatanodeManager: dfs.block.invalidate.limit=1000
2022-06-06 10:30:21,546 INFO org.apache.hadoop.hdfs.server.blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true
2022-06-06 10:30:21,547 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000
2022-06-06 10:30:21,548 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: The block deletion will start around 2022 Jun 06 10:30:21
2022-06-06 10:30:21,550 INFO org.apache.hadoop.util.GSet: Computing capacity for map BlocksMap
2022-06-06 10:30:21,550 INFO org.apache.hadoop.util.GSet: VM type = 64-bit
2022-06-06 10:30:21,551 INFO org.apache.hadoop.util.GSet: 2.0% max memory 3.8 GB = 78.5 MB
2022-06-06 10:30:21,551 INFO org.apache.hadoop.util.GSet: capacity = 2^23 = 8388608 entries
2022-06-06 10:30:21,575 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: dfs.block.access.token.enable=false
2022-06-06 10:30:21,576 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: defaultReplication = 1
2022-06-06 10:30:21,576 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: maxReplication = 512
2022-06-06 10:30:21,576 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: minReplication = 1
2022-06-06 10:30:21,576 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: maxReplicationStreams = 2
2022-06-06 10:30:21,576 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: replicationRecheckInterval = 3000
2022-06-06 10:30:21,576 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: encryptDataTransfer = false
2022-06-06 10:30:21,576 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: maxNumBlocksToLog = 1000
2022-06-06 10:30:21,582 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: fsOwner = root (auth:SIMPLE)
2022-06-06 10:30:21,582 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: supergroup = supergroup
2022-06-06 10:30:21,582 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: isPermissionEnabled = true
2022-06-06 10:30:21,582 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: HA Enabled: false
2022-06-06 10:30:21,583 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Append Enabled: true
2022-06-06 10:30:21,801 INFO org.apache.hadoop.util.GSet: Computing capacity for map INodeMap
2022-06-06 10:30:21,801 INFO org.apache.hadoop.util.GSet: VM type = 64-bit
2022-06-06 10:30:21,801 INFO org.apache.hadoop.util.GSet: 1.0% max memory 3.8 GB = 39.3 MB
2022-06-06 10:30:21,801 INFO org.apache.hadoop.util.GSet: capacity = 2^22 = 4194304 entries
2022-06-06 10:30:21,807 INFO org.apache.hadoop.hdfs.server.namenode.FSDirectory: ACLs enabled? false
2022-06-06 10:30:21,807 INFO org.apache.hadoop.hdfs.server.namenode.FSDirectory: XAttrs enabled? true
2022-06-06 10:30:21,807 INFO org.apache.hadoop.hdfs.server.namenode.FSDirectory: Maximum size of an xattr: 16384
2022-06-06 10:30:21,807 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: Caching file names occuring more than 10 times
2022-06-06 10:30:21,815 INFO org.apache.hadoop.util.GSet: Computing capacity for map cachedBlocks
2022-06-06 10:30:21,815 INFO org.apache.hadoop.util.GSet: VM type = 64-bit
2022-06-06 10:30:21,815 INFO org.apache.hadoop.util.GSet: 0.25% max memory 3.8 GB = 9.8 MB
2022-06-06 10:30:21,815 INFO org.apache.hadoop.util.GSet: capacity = 2^20 = 1048576 entries
2022-06-06 10:30:21,819 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: dfs.namenode.safemode.threshold-pct = 0.9990000128746033
2022-06-06 10:30:21,819 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes = 0
2022-06-06 10:30:21,819 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: dfs.namenode.safemode.extension = 30000
2022-06-06 10:30:21,822 INFO org.apache.hadoop.hdfs.server.namenode.top.metrics.TopMetrics: NNTop conf: dfs.namenode.top.window.num.buckets = 10
2022-06-06 10:30:21,822 INFO org.apache.hadoop.hdfs.server.namenode.top.metrics.TopMetrics: NNTop conf: dfs.namenode.top.num.users = 10
2022-06-06 10:30:21,822 INFO org.apache.hadoop.hdfs.server.namenode.top.metrics.TopMetrics: NNTop conf: dfs.namenode.top.windows.minutes = 1,5,25
2022-06-06 10:30:21,823 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Retry cache on namenode is enabled
2022-06-06 10:30:21,823 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 m
illis
2022-06-06 10:30:21,826 INFO org.apache.hadoop.util.GSet: Computing capacity for map NameNodeRetryCache
2022-06-06 10:30:21,826 INFO org.apache.hadoop.util.GSet: VM type = 64-bit
2022-06-06 10:30:21,827 INFO org.apache.hadoop.util.GSet: 0.029999999329447746% max memory 3.8 GB = 1.2 MB
2022-06-06 10:30:21,827 INFO org.apache.hadoop.util.GSet: capacity = 2^17 = 131072 entries
2022-06-06 10:30:21,924 INFO org.apache.hadoop.hdfs.server.common.Storage: Lock on /opt/xvdb/hadoop_data/hdfs/name/in_use.lock acquired by nodename 26889@VM_9_5_centos
2022-06-06 10:30:22,004 INFO org.apache.hadoop.hdfs.server.namenode.FileJournalManager: Recovering unfinalized segments in /opt/xvdb/hadoop_data/hdfs/name/current
2022-06-06 10:30:22,094 INFO org.apache.hadoop.hdfs.server.namenode.FileJournalManager: Finalizing edits file /opt/xvdb/hadoop_data/hdfs/name/current/edits_inprogress_
0000000000061105989 -> /opt/xvdb/hadoop_data/hdfs/name/current/edits_0000000000061105989-0000000000061105989
2022-06-06 10:30:24,079 INFO org.apache.hadoop.hdfs.server.namenode.FSImageFormatPBINode: Loading 5808217 INodes.
2022-06-06 10:30:43,643 INFO org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf: Loaded FSImage in 21 seconds.
2022-06-06 10:30:43,644 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Loaded image for txid 61105988 from /opt/xvdb/hadoop_data/hdfs/name/current/fsimage_000000
0000061105988
2022-06-06 10:30:43,644 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Reading org.apache.hadoop.hdfs.server.namenode.RedundantEditLogInputStream@3aac1b69 expect
ing start txid #61105989
2022-06-06 10:30:43,644 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Start loading edits file /opt/xvdb/hadoop_data/hdfs/name/current/edits_0000000000061105989
-0000000000061105989
2022-06-06 10:30:43,646 INFO org.apache.hadoop.hdfs.server.namenode.EditLogInputStream: Fast-forwarding stream '/opt/xvdb/hadoop_data/hdfs/name/current/edits_000000000
0061105989-0000000000061105989' to transaction ID 61105989
2022-06-06 10:30:43,649 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Edits file /opt/xvdb/hadoop_data/hdfs/name/current/edits_0000000000061105989-0000000000061
105989 of size 1048576 edits # 1 loaded in 0 seconds
2022-06-06 10:30:45,626 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Need to save fs image? false (staleImage=false, haEnabled=false, isRollingUpgrade=fal
se)
2022-06-06 10:30:45,676 INFO org.apache.hadoop.hdfs.server.namenode.FSEditLog: Starting log segment at 61105990
2022-06-06 10:30:45,744 INFO org.apache.hadoop.hdfs.server.namenode.NameCache: initialized with 0 entries 0 lookups
2022-06-06 10:30:45,745 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Finished loading FSImage in 23915 msecs
2022-06-06 10:30:45,913 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: RPC server is binding to VM-9-5-centos:9000
2022-06-06 10:30:45,919 INFO org.apache.hadoop.ipc.CallQueueManager: Using callQueue class java.util.concurrent.LinkedBlockingQueue
2022-06-06 10:30:45,931 INFO org.apache.hadoop.ipc.Server: Starting Socket Reader #1 for port 9000
2022-06-06 10:30:45,961 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Registered FSNamesystemState MBean
2022-06-06 10:30:45,970 INFO org.apache.hadoop.hdfs.server.namenode.LeaseManager: Number of blocks under construction: 0
2022-06-06 10:30:45,971 INFO org.apache.hadoop.hdfs.server.namenode.LeaseManager: Number of blocks under construction: 0
2022-06-06 10:30:45,971 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: initializing replication queues
2022-06-06 10:30:45,971 INFO org.apache.hadoop.hdfs.StateChange: STATE* Leaving safe mode after 24 secs
2022-06-06 10:30:45,971 INFO org.apache.hadoop.hdfs.StateChange: STATE* Network topology has 0 racks and 0 datanodes
2022-06-06 10:30:45,971 INFO org.apache.hadoop.hdfs.StateChange: STATE* UnderReplicatedBlocks has 0 blocks
2022-06-06 10:30:45,978 INFO org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor: Number of failed storage changes from 0 to 0
2022-06-06 10:30:45,984 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: Total number of blocks = 0
2022-06-06 10:30:45,984 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: Number of invalid blocks = 0
2022-06-06 10:30:45,984 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: Number of under-replicated blocks = 0
2022-06-06 10:30:45,984 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: Number of over-replicated blocks = 0
2022-06-06 10:30:45,984 INFO org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: Number of blocks being written = 0
2022-06-06 10:30:45,984 INFO org.apache.hadoop.hdfs.StateChange: STATE* Replication Queue initialization scan for invalid, over- and under-replicated blocks completed
in 13 msec
2022-06-06 10:30:46,012 INFO org.apache.hadoop.ipc.Server: IPC Server Responder: starting
2022-06-06 10:30:46,012 INFO org.apache.hadoop.ipc.Server: IPC Server listener on 9000: starting
2022-06-06 10:30:46,015 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: NameNode RPC up at: VM-9-5-centos/127.0.0.1:9000
2022-06-06 10:30:46,015 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Starting services required for active state
2022-06-06 10:30:46,035 INFO org.apache.hadoop.hdfs.server.blockmanagement.CacheReplicationMonitor: Starting CacheReplicationMonitor with interval 30000 milliseconds

重启dn检查文件,未能看到数据,关闭dn,启动nn能看到文件个数看不到blocksize

想问一下文件还能导出或者nn重建嘛

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 创建了问题 6月6日

      悬赏问题

      • ¥15 请问汏佬要怎么访问这种过滤了post和get的php内容?
      • ¥15 C语言调用python脚本出现Debug Assertion Failed错误
      • ¥15 C语言设计学生成绩管理系统
      • ¥15 关于服务器传输和unity的一些问题
      • ¥15 python qt 实现数据表 表头筛选
      • ¥15 关于电子电气架构的问题,如何解决?
      • ¥75 数据总结公式(克服遗忘问题)
      • ¥15 flask 聊天机器人错误
      • ¥15 Excel数据分析,制作退休计划的电子表格模型
      • ¥15 EasyExcel向模板追加导入数据出现多余空行