Jinghui Wang created HADOOP-10222:
-------------------------------------

             Summary: estSSLHttpServer creates ssl-server.xml in hadoop-common 
test classes without cleaning up
                 Key: HADOOP-10222
                 URL: https://issues.apache.org/jira/browse/HADOOP-10222
             Project: Hadoop Common
          Issue Type: Test
          Components: test
    Affects Versions: 2.2.0
            Reporter: Jinghui Wang
            Priority: Minor
             Fix For: 2.2.0


TestSSLHttpServer creates ssl-server.xml hadoop-common test-classes without 
cleaning up. Other tests could pick up the ssl-server configuration file and 
get the wrong keystore and truststore.

Got the following exception while running 
org.apache.hadoop.hdfs.TestNameNodeHttpServer and the cause is 
TestNameNodeHttpServer is picking up the ssl-server.xml file written by 
TestSSLHttpServer

java.io.IOException: Keystore was tampered with, or password was incorrect
        at com.ibm.crypto.provider.JavaKeyStore.engineLoad(Unknown Source)
        at java.security.KeyStore.load(KeyStore.java:414)
        at 
org.mortbay.jetty.security.SslSocketConnector.createFactory(SslSocketConnector.java:246)
        at 
org.mortbay.jetty.security.SslSocketConnector.newServerSocket(SslSocketConnector.java:476)
        at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
        at 
org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:283)
        at 
org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.Server.doStart(Server.java:235)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.apache.hadoop.http.HttpServer.start(HttpServer.java:692)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:158)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:626)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:488)
        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.MiniDFSCluster.createNameNode(MiniDFSCluster.java:893)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:784)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:642)
        at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:334)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:316)
        at 
org.apache.hadoop.hdfs.TestNameNodeHttpServer.testSslConfiguration(TestNameNodeHttpServer.java:38)




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to