hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hairong Kuang <hair...@yahoo-inc.com>
Subject Re: NullPointer on starting NameNode
Date Wed, 14 Oct 2009 16:53:11 GMT
This might be caused by
https://issues.apache.org/jira/browse/HDFS-686. I will upload a patch there
for you to start your NameNode.

Hairong


On 10/14/09 9:15 AM, "Bryn Divey" <bryn@bengueladev.com> wrote:

> Hi all, 
> 
> I'm getting the following on initializing my NameNode. The actual line
> throwing the exception is
> 
>       if (atime != -1) {
> ->      long inodeTime = inode.getAccessTime();
> 
> 
> Have I corrupted the fsimage or something? This is on the Cloudera
> packaging of Hadoop 0.20.1+133.
> 
> Regards,
> Bryn
> 
> 09/10/14 18:12:02 INFO metrics.RpcMetrics: Initializing RPC Metrics with
> hostName=NameNode, port=8020
> 09/10/14 18:12:02 INFO namenode.NameNode: Namenode up at:
> 10.23.4.172/10.23.4.172:8020
> 09/10/14 18:12:02 INFO jvm.JvmMetrics: Initializing JVM Metrics with
> processName=NameNode, sessionId=null
> 09/10/14 18:12:02 INFO metrics.NameNodeMetrics: Initializing
> NameNodeMeterics using context
> object:org.apache.hadoop.metrics.spi.NoEmitMetricsContext
> 09/10/14 18:12:03 INFO namenode.FSNamesystem: fsOwner=hadoop,hadoop
> 09/10/14 18:12:03 INFO namenode.FSNamesystem: supergroup=supergroup
> 09/10/14 18:12:03 INFO namenode.FSNamesystem: isPermissionEnabled=false
> 09/10/14 18:12:03 INFO metrics.FSNamesystemMetrics: Initializing
> FSNamesystemMetrics using context
> object:org.apache.hadoop.metrics.spi.NoEmitMetricsContext
> 09/10/14 18:12:03 INFO namenode.FSNamesystem: Registered
> FSNamesystemStatusMBean
> 09/10/14 18:12:03 INFO common.Storage: Number of files = 80
> 09/10/14 18:12:03 INFO common.Storage: Number of files under
> construction = 0
> 09/10/14 18:12:03 INFO common.Storage: Image file of size 19567 loaded
> in 0 seconds.
> 09/10/14 18:12:03 ERROR namenode.NameNode:
> java.lang.NullPointerException
> at
> org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedSetTimes(FSDirec
> tory.java:1232)
> at
> org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedSetTimes(FSDirec
> tory.java:1221)
> at
> org.apache.hadoop.hdfs.server.namenode.FSEditLog.loadFSEdits(FSEditLog.java:77
> 6)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSEdits(FSImage.java:992)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:812)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.j
> ava:364)
> at
> org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.jav
> a:87)
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.ja
> va:311)
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:2
> 92)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:206)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:288)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:9
> 68)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:977)
> 
> 
> 


Mime
View raw message