src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/removeCachedQuery")
  @Produces({MediaType.TEXT_PLAIN})
  public Response removeCachedQuery() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);

      before();
      String queryName = request.getParameter("queryName");
      nnLoader.getSuggestionsEngine().removeQueryFromAnalysis(queryName);
      return Response.ok(queryName + " removed from analysis.").build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * REMOVECACHEDQUERY eendpoint is an admin-level endpoint meant to remove a query from cached
   * analysis by NNA.
   */
REMOVECACHEDQUERY eendpoint is an admin-level endpoint meant to remove a query from cached
analysis by NNA.
REMOVECACHEDQUERY eendpoint is an admin - level endpoint meant to remove a query from cached analysis by NNA .
@GET
  @Path("/removeCachedQuery")
  @Produces({MediaType.TEXT_PLAIN})
  public Response removeCachedQuery() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
      before();
      String queryName = request.getParameter("queryName");
      nnLoader.getSuggestionsEngine().removeQueryFromAnalysis(queryName);
      return Response.ok(queryName + " removed from analysis.").build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/removeCachedQuery" ) @ Produces ( { MediaType . TEXT_PLAIN } ) public Response removeCachedQuery ( ) { try { final NameNodeLoader nnLoader = ( NameNodeLoader ) context . getAttribute ( NNA_NN_LOADER ) ; before ( ) ; String queryName = request . getParameter ( "queryName" ) ; nnLoader . getSuggestionsEngine ( ) . removeQueryFromAnalysis ( queryName ) ; return Response . ok ( queryName + " removed from analysis." ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
REMOVECACHEDQUERY eendpoint is an admin-level endpoint meant to remove a query from cached
 analysis by NNA.
REMOVECACHEDQUERY eendpoint is an admin - level endpoint meant to remove a query from cached analysis by NNA .