Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10222

TestSSLHttpServer creates ssl-server.xml in hadoop-common test classes without cleaning up

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.0
    • None
    • test
    • None

    Description

      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)

      Attachments

        1. HADOOP-10222.patch
          1 kB
          Jinghui Wang

        Activity

          People

            Unassigned Unassigned
            jwang302 Jinghui Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: