src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/dump")
  @Produces({MediaType.APPLICATION_JSON})
  public Response dump() {
    final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
    try {
      before();
      if (!nnLoader.isInit()) {
        try (Writer writer = response.getWriter()) {
          writer.write("Namesystem is not fully initialized.\n");
        }
        return Response.ok().build();
      }
      String path = request.getParameter("path");
      nnLoader.dumpINodeInDetail(path, response);
      return Response.ok().build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/** DUMP endpoint is for dumping an INode path's information in PLAINTEXT form. */
DUMP endpoint is for dumping an INode path's information in PLAINTEXT form.
DUMP endpoint is for dumping an INode path ' s information in PLAINTEXT form .
@GET
  @Path("/dump")
  @Produces({MediaType.APPLICATION_JSON})
  public Response dump() {
    final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
    try {
      before();
      if (!nnLoader.isInit()) {
        try (Writer writer = response.getWriter()) {
          writer.write("Namesystem is not fully initialized.\n");
        }
        return Response.ok().build();
      }
      String path = request.getParameter("path");
      nnLoader.dumpINodeInDetail(path, response);
      return Response.ok().build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/dump" ) @ Produces ( { MediaType . APPLICATION_JSON } ) public Response dump ( ) { final NameNodeLoader nnLoader = ( NameNodeLoader ) context . getAttribute ( NNA_NN_LOADER ) ; try { before ( ) ; if ( ! nnLoader . isInit ( ) ) { try ( Writer writer = response . getWriter ( ) ) { writer . write ( "Namesystem is not fully initialized.\n" ) ; } return Response . ok ( ) . build ( ) ; } String path = request . getParameter ( "path" ) ; nnLoader . dumpINodeInDetail ( path , response ) ; return Response . ok ( ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
DUMP endpoint is for dumping an INode path's information in PLAINTEXT form.
DUMP endpoint is for dumping an INode path ' s information in PLAINTEXT form .