Reply
New Contributor
Posts: 2
Registered: ‎08-05-2014

Getting Error while strating Namnenode

HI,

 

I am getting following error while starting Namenode using the command "sudo service hadoop-hdfs-namenode start" in security enabled cdh5 hadoop. Please help me.

 

 

2014-09-06 04:21:33,245 INFO org.apache.hadoop.http.HttpServer2: HttpServer.start() threw a non Bind IOException
java.io.FileNotFoundException: /var/lib/hadoop-hdfs/.keystore (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at org.mortbay.resource.FileResource.getInputStream(FileResource.java:275)
        at org.mortbay.jetty.security.SslSocketConnector.createFactory(SslSocketConnector.java:242)
        at org.mortbay.jetty.security.SslSocketConnector.newServerSocket(SslSocketConnector.java:476)
        at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
        at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:845)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:786)
        at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:132)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:662)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:552)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:720)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:704)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1354)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1420)
2014-09-06 04:21:33,248 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Stopping NameNode metrics system...
2014-09-06 04:21:33,248 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system stopped.
2014-09-06 04:21:33,249 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system shutdown complete.
2014-09-06 04:21:33,249 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Exception in namenode join
java.io.FileNotFoundException: /var/lib/hadoop-hdfs/.keystore (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at org.mortbay.resource.FileResource.getInputStream(FileResource.java:275)
        at org.mortbay.jetty.security.SslSocketConnector.createFactory(SslSocketConnector.java:242)
        at org.mortbay.jetty.security.SslSocketConnector.newServerSocket(SslSocketConnector.java:476)
        at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
        at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:845)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:786)
        at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:132)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:662)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:552)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:720)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:704)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1354)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1420)
2014-09-06 04:21:33,251 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2014-09-06 04:21:33,252 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at xxxxxxxx

Highlighted
Explorer
Posts: 7
Registered: ‎04-03-2015

Re: Getting Error while strating Namnenode

Hey,

 

I am getting the same error.

 

Were you able to ressolve this ?

 

Thanks,

Harman

Posts: 279
Topics: 0
Kudos: 19
Solutions: 8
Registered: ‎08-19-2013

Re: Getting Error while strating Namnenode

Have you configured the keystore and truststore properties:

 

ssl.server.keystore.location

ssl.server.keystore.keypassword

ssl.client.truststore.location

ssl.client.truststore.password

 

If you are already using a self-signed certificate then the NameNode is probably looking for the truststore.  To improve security, the signing cert also needs to be trusted.

 

There are some helpful links in the Configuring Encryption for Hadoop Services for Creating Certificates and Creating Java Keystores and Truststore.



David Wilder, Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum

Announcements