分享

namenode启动失败,这是什么原因

PeerQuan 发表于 2015-3-13 11:21:14 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 71921
org.apache.hadoop.hdfs.server.namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
2015-03-12 20:13:32,985 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
2015-03-12 20:13:33,151 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2015-03-12 20:13:33,152 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system started
2015-03-12 20:13:34,871 INFO org.mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2015-03-12 20:13:34,980 INFO org.apache.hadoop.http.HttpServer: Added global filter 'safety' (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
2015-03-12 20:13:34,984 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context hdfs
2015-03-12 20:13:34,984 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context static
2015-03-12 20:13:34,984 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context logs
2015-03-12 20:13:35,045 INFO org.apache.hadoop.http.HttpServer: dfs.webhdfs.enabled = true
2015-03-12 20:13:35,051 INFO org.apache.hadoop.http.HttpServer: Added filter 'SPNEGO' (class=org.apache.hadoop.hdfs.web.AuthFilter)
2015-03-12 20:13:35,054 INFO org.apache.hadoop.http.HttpServer: addJerseyResourcePackage: packageName=org.apache.hadoop.hdfs.server.namenode.web.resources;org.apache.hadoop.hdfs.web.resources, pathSpec=/webhdfs/v1/*
2015-03-12 20:13:35,123 INFO org.apache.hadoop.http.HttpServer: Jetty bound to port 50070
2015-03-12 20:13:35,128 INFO org.mortbay.log: jetty-6.1.26
2015-03-12 20:13:35,822 WARN org.apache.hadoop.security.authentication.server.AuthenticationFilter: 'signature.secret' configuration not set, using a random value as secret
2015-03-12 20:13:36,131 INFO org.mortbay.log: Started SelectChannelConnector@0.0.0.0:50070
2015-03-12 20:13:36,131 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: Web-server up at: 0.0.0.0:50070
2015-03-12 20:13:36,288 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Only one image storage directory (dfs.namenode.name.dir) configured. Beware of dataloss due to lack of redundant storage directories!
2015-03-12 20:13:36,288 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Only one namespace edits storage directory (dfs.namenode.edits.dir) configured. Beware of dataloss due to lack of redundant storage directories!
2015-03-12 20:13:36,344 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Exception in namenode join
java.lang.NullPointerException
        at java.io.File.<init>(File.java:277)
        at org.apache.hadoop.hdfs.server.namenode.NNStorage.setStorageDirectories(NNStorage.java:300)
        at org.apache.hadoop.hdfs.server.namenode.NNStorage.<init>(NNStorage.java:161)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.<init>(FSImage.java:127)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:557)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:443)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:491)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:684)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:669)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1254)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1320)
2015-03-12 20:13:36,364 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2015-03-12 20:13:36,373 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG:

已有(4)人评论

跳转到指定楼层
jixianqiuxue 发表于 2015-3-13 12:04:47
应该format的时候就会出现问题,楼主需要检测下权限和配置文件。贴出自己认为不对内容。否则无法定位。
回复

使用道具 举报

PeerQuan 发表于 2015-3-13 15:22:28
jixianqiuxue 发表于 2015-3-13 12:04
应该format的时候就会出现问题,楼主需要检测下权限和配置文件。贴出自己认为不对内容。否则无法定位。

已经解决了 没有namenode 没有初始化
回复

使用道具 举报

lalala~ 发表于 2016-9-7 09:31:30
你好,我也有一样的报错, WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Only one namespace edits storage directory (dfs.namenode.edits.dir) configured. Beware of data loss due to lack of redundant storage directories! 请问你是怎么解决的呢?谢谢!
回复

使用道具 举报

langke93 发表于 2016-9-7 10:42:02
lalala~ 发表于 2016-9-7 09:31
你好,我也有一样的报错, WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Only one namespac ...

是配置的HA吗?这个是说应该配置一个冗余的dfs.namenode.edits.dir目录,是否只配置了一个
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条