src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/users")
  @Produces(MediaType.APPLICATION_JSON)
  public Response users() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
      before();
      String suggestion = request.getParameter("suggestion");
      return Response.ok(
              nnLoader.getSuggestionsEngine().getUsersAsJson(suggestion),
              MediaType.APPLICATION_JSON)
          .build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * USERS endpoint is an admin-level endpoint meant to dump the cached set of detected users by
   * NNA.
   */
USERS endpoint is an admin-level endpoint meant to dump the cached set of detected users by
NNA.
USERS endpoint is an admin - level endpoint meant to dump the cached set of detected users by NNA .
@GET
  @Path("/users")
  @Produces(MediaType.APPLICATION_JSON)
  public Response users() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
      before();
      String suggestion = request.getParameter("suggestion");
      return Response.ok(
              nnLoader.getSuggestionsEngine().getUsersAsJson(suggestion),
              MediaType.APPLICATION_JSON)
          .build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/users" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response users ( ) { try { final NameNodeLoader nnLoader = ( NameNodeLoader ) context . getAttribute ( NNA_NN_LOADER ) ; before ( ) ; String suggestion = request . getParameter ( "suggestion" ) ; return Response . ok ( nnLoader . getSuggestionsEngine ( ) . getUsersAsJson ( suggestion ) , MediaType . APPLICATION_JSON ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
USERS endpoint is an admin-level endpoint meant to dump the cached set of detected users by
 NNA.
USERS endpoint is an admin - level endpoint meant to dump the cached set of detected users by NNA .