Class NameNodeHttpServer

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer

@Private public class NameNodeHttpServer extends Object
Encapsulates the HTTP server started by the NameNode.
  • Field Details

  • Method Details

    • initWebHdfs

      public static void initWebHdfs(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.http.HttpServer2 httpServer2, String jerseyResourcePackage) throws IOException
      Throws:
      IOException
    • join

      public void join() throws InterruptedException
      Joins the httpserver.
      Throws:
      InterruptedException
    • getNameNodeFromContext

      public static NameNode getNameNodeFromContext(javax.servlet.ServletContext context)
    • getTokenVerifierFromContext

      public static TokenVerifier getTokenVerifierFromContext(javax.servlet.ServletContext context)
    • getNameNodeAddressFromContext

      public static InetSocketAddress getNameNodeAddressFromContext(javax.servlet.ServletContext context)
    • getNameNodeStateFromContext

      public static org.apache.hadoop.ha.HAServiceProtocol.HAServiceState getNameNodeStateFromContext(javax.servlet.ServletContext context)
    • getHttpServer

      @VisibleForTesting public org.apache.hadoop.http.HttpServer2 getHttpServer()
      Returns the httpServer.
      Returns:
      HttpServer2