Class WebUiPageTree.ResizePage

java.lang.Object
org.apache.drill.yarn.appMaster.http.WebUiPageTree.ResizePage
Enclosing class:
WebUiPageTree

@Path("/resize") @RolesAllowed("admin") public static class WebUiPageTree.ResizePage extends Object
Confirm that the user wants to resize the cluster. Displays a warning if the user wants to shrink the cluster, since, at present, doing so will kill any in-flight queries. The GET request display the warning, the POST request confirms the action. The action itself is provided as query parameters:
.../resize?type=<type>&n=<quantity>
Where the type is one of "resize", "grow", "shrink" or "force-shrink" and n is the associated quantity.

Note that the manage page only provides the "resize" option; the grow and shrink options were removed from the Web UI and are only visible through the REST API.

  • Constructor Details

    • ResizePage

      public ResizePage()
  • Method Details

    • resize

      @POST @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable resize()