src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/drop")
  @Produces({MediaType.TEXT_PLAIN})
  public Response drop() {
    try {
      final HsqlDriver hsqlDriver = (HsqlDriver) context.getAttribute(NNA_HSQL_DRIVER);
      before();
      String table = request.getParameter("table");
      hsqlDriver.rebuildTable(table);
      return Response.ok("Successfully re-built table: " + table, MediaType.TEXT_PLAIN).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/** DROP endpoint is an admin-level endpoint meant to drop and rebuild embedded DB tables. */
DROP endpoint is an admin-level endpoint meant to drop and rebuild embedded DB tables.
DROP endpoint is an admin - level endpoint meant to drop and rebuild embedded DB tables .
@GET
  @Path("/drop")
  @Produces({MediaType.TEXT_PLAIN})
  public Response drop() {
    try {
      final HsqlDriver hsqlDriver = (HsqlDriver) context.getAttribute(NNA_HSQL_DRIVER);
      before();
      String table = request.getParameter("table");
      hsqlDriver.rebuildTable(table);
      return Response.ok("Successfully re-built table: " + table, MediaType.TEXT_PLAIN).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/drop" ) @ Produces ( { MediaType . TEXT_PLAIN } ) public Response drop ( ) { try { final HsqlDriver hsqlDriver = ( HsqlDriver ) context . getAttribute ( NNA_HSQL_DRIVER ) ; before ( ) ; String table = request . getParameter ( "table" ) ; hsqlDriver . rebuildTable ( table ) ; return Response . ok ( "Successfully re-built table: " + table , MediaType . TEXT_PLAIN ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
DROP endpoint is an admin-level endpoint meant to drop and rebuild embedded DB tables.
DROP endpoint is an admin - level endpoint meant to drop and rebuild embedded DB tables .