src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/refresh")
  @Produces({MediaType.TEXT_PLAIN})
  public Response refresh() {
    final SecurityContext securityContext =
        (SecurityContext) context.getAttribute(NNA_SECURITY_CONTEXT);
    try {
      before();
      securityContext.refresh(new ApplicationConfiguration());
      return Response.ok(securityContext.toString(), MediaType.TEXT_PLAIN).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * REFRESH endpoint is an admin endpoint meant to change the set of read, write, and admin users.
   */
REFRESH endpoint is an admin endpoint meant to change the set of read, write, and admin users.
REFRESH endpoint is an admin endpoint meant to change the set of read write and admin users .
@GET
  @Path("/refresh")
  @Produces({MediaType.TEXT_PLAIN})
  public Response refresh() {
    final SecurityContext securityContext =
        (SecurityContext) context.getAttribute(NNA_SECURITY_CONTEXT);
    try {
      before();
      securityContext.refresh(new ApplicationConfiguration());
      return Response.ok(securityContext.toString(), MediaType.TEXT_PLAIN).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/refresh" ) @ Produces ( { MediaType . TEXT_PLAIN } ) public Response refresh ( ) { final SecurityContext securityContext = ( SecurityContext ) context . getAttribute ( NNA_SECURITY_CONTEXT ) ; try { before ( ) ; securityContext . refresh ( new ApplicationConfiguration ( ) ) ; return Response . ok ( securityContext . toString ( ) , MediaType . TEXT_PLAIN ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
REFRESH endpoint is an admin endpoint meant to change the set of read, write, and admin users.
REFRESH endpoint is an admin endpoint meant to change the set of read write and admin users .