Class RouterWebServices
java.lang.Object
org.apache.hadoop.yarn.server.router.webapp.RouterWebServices
- All Implemented Interfaces:
org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@Singleton
@Path("/ws/v1/cluster")
public class RouterWebServices
extends Object
implements org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
RouterWebServices is a service that runs on each router that can be used to
intercept and inspect
RMWebServiceProtocol messages from client to
the cluster resource manager. It listens RMWebServiceProtocol REST
messages from the client and creates a request intercepting pipeline instance
for each client. The pipeline is a chain of RESTRequestInterceptor
instances that can inspect and modify the request/response as needed. The
main difference with AMRMProxyService is the protocol they implement.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPrivate structure for encapsulating RequestInterceptor and user instances. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseaddToClusterNodeLabels(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo newNodeLabels, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsecancelDelegationToken(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.RMQueueAclInfocheckUserAccessToQueue(String queue, String username, String queueAclType, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsecreateNewApplication(javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsecreateNewReservation(javax.servlet.http.HttpServletRequest hsr) protected RESTRequestInterceptorThis method creates and returns reference of the first interceptor in the chain of request interceptor instances.javax.ws.rs.core.ResponsedeleteReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) dumpSchedulerLogs(String time, javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfoget()org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ActivitiesInfogetActivities(javax.servlet.http.HttpServletRequest hsr, String nodeId, String groupBy) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfogetAppActivities(javax.servlet.http.HttpServletRequest hsr, String appId, String time, Set<String> requestPriorities, Set<String> allocationRequestIds, String groupBy, String limit, Set<String> actions, boolean summarize) org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfogetAppAttempt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptsInfogetAppAttempts(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPrioritygetAppPriority(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueuegetAppQueue(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfogetApps(javax.servlet.http.HttpServletRequest hsr, String stateQuery, Set<String> statesQuery, String finalStatusQuery, String userQuery, String queueQuery, String count, String startedBegin, String startedEnd, String finishBegin, String finishEnd, Set<String> applicationTypes, Set<String> applicationTags, String name, Set<String> unselectedFields) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppStategetAppState(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationStatisticsInfogetAppStatistics(javax.servlet.http.HttpServletRequest hsr, Set<String> stateQueries, Set<String> typeQueries) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfogetAppTimeout(javax.servlet.http.HttpServletRequest hsr, String appId, String type) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfogetAppTimeouts(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.BulkActivitiesInfogetBulkActivities(javax.servlet.http.HttpServletRequest hsr, String groupBy, int activitiesCount) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfogetClusterNodeLabels(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterUserInfogetClusterUserInfo(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.webapp.dao.ContainerInfogetContainer(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId, String containerId) org.apache.hadoop.yarn.server.webapp.dao.ContainersInfogetContainers(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) getInterceptorChain(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfogetLabelsOnNode(javax.servlet.http.HttpServletRequest hsr, String nodeId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfogetLabelsToNodes(Set<String> labels) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfogetNodeToLabels(javax.servlet.http.HttpServletRequest hsr) Gets the Request interceptor chains for all the users.org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfogetRMNodeLabels(javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsegetSchedulerConfiguration(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfojavax.ws.rs.core.ResponselistReservation(String queue, String reservationId, long startTime, long endTime, boolean includeResourceAllocations, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsepostDelegationToken(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken tokenData, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsepostDelegationTokenExpiration(javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponseremoveFromClusterNodeLabels(Set<String> oldNodeLabels, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsereplaceLabelsOnNode(Set<String> newNodeLabelsName, javax.servlet.http.HttpServletRequest hsr, String nodeId) javax.ws.rs.core.ResponsereplaceLabelsOnNodes(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList newNodeToLabels, javax.servlet.http.HttpServletRequest hsr) protected voidsetResponse(javax.servlet.http.HttpServletResponse response) javax.ws.rs.core.ResponsesignalToContainer(String containerId, String command, javax.servlet.http.HttpServletRequest req) javax.ws.rs.core.ResponsesubmitApplication(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo newApp, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsesubmitReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponseupdateApplicationPriority(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority targetPriority, javax.servlet.http.HttpServletRequest hsr, String appId) javax.ws.rs.core.ResponseupdateApplicationTimeout(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo appTimeout, javax.servlet.http.HttpServletRequest hsr, String appId) javax.ws.rs.core.ResponseupdateAppQueue(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue targetQueue, javax.servlet.http.HttpServletRequest hsr, String appId) javax.ws.rs.core.ResponseupdateAppState(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState targetState, javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInfoupdateNodeResource(javax.servlet.http.HttpServletRequest hsr, String nodeId, org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo resourceOption) javax.ws.rs.core.ResponseupdateReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponseupdateSchedulerConfiguration(org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo mutationInfo, javax.servlet.http.HttpServletRequest hsr)
-
Field Details
-
DEFAULT_QUEUE
- See Also:
-
DEFAULT_RESERVATION_ID
- See Also:
-
DEFAULT_START_TIME
- See Also:
-
DEFAULT_END_TIME
- See Also:
-
DEFAULT_INCLUDE_RESOURCE
- See Also:
-
-
Constructor Details
-
RouterWebServices
@Inject public RouterWebServices(@Named("router") Router router, @Named("conf") org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
getInterceptorChain
@VisibleForTesting protected RouterWebServices.RequestInterceptorChainWrapper getInterceptorChain(javax.servlet.http.HttpServletRequest hsr) -
getPipelines
@VisibleForTesting protected Map<String,RouterWebServices.RequestInterceptorChainWrapper> getPipelines()Gets the Request interceptor chains for all the users.- Returns:
- the request interceptor chains.
-
createRequestInterceptorChain
This method creates and returns reference of the first interceptor in the chain of request interceptor instances.- Returns:
- the reference of the first interceptor in the chain
-
get
@GET @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo get()- Specified by:
getin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getClusterInfo
@GET @Path("/info") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo getClusterInfo()- Specified by:
getClusterInfoin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getClusterUserInfo
@GET @Path("/userinfo") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterUserInfo getClusterUserInfo(@Context javax.servlet.http.HttpServletRequest hsr) - Specified by:
getClusterUserInfoin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getClusterMetricsInfo
@GET @Path("/metrics") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo getClusterMetricsInfo()- Specified by:
getClusterMetricsInfoin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getSchedulerInfo
@GET @Path("/scheduler") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfo getSchedulerInfo()- Specified by:
getSchedulerInfoin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
dumpSchedulerLogs
@POST @Path("/scheduler/logs") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public String dumpSchedulerLogs(@FormParam("time") String time, @Context javax.servlet.http.HttpServletRequest hsr) throws IOException - Specified by:
dumpSchedulerLogsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
IOException
-
getNodes
@GET @Path("/nodes") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfo getNodes(@QueryParam("states") String states) - Specified by:
getNodesin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getNode
@GET @Path("/nodes/{nodeId}") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo getNode(@PathParam("nodeId") String nodeId) - Specified by:
getNodein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
updateNodeResource
@POST @Path("/nodes/{nodeId}/resource") @Consumes({"application/json","application/xml"}) @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInfo updateNodeResource(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("nodeId") String nodeId, org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo resourceOption) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
updateNodeResourcein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
getApps
@GET @Path("/apps") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfo getApps(@Context javax.servlet.http.HttpServletRequest hsr, @QueryParam("state") String stateQuery, @QueryParam("states") Set<String> statesQuery, @QueryParam("finalStatus") String finalStatusQuery, @QueryParam("user") String userQuery, @QueryParam("queue") String queueQuery, @QueryParam("limit") String count, @QueryParam("startedTimeBegin") String startedBegin, @QueryParam("startedTimeEnd") String startedEnd, @QueryParam("finishedTimeBegin") String finishBegin, @QueryParam("finishedTimeEnd") String finishEnd, @QueryParam("applicationTypes") Set<String> applicationTypes, @QueryParam("applicationTags") Set<String> applicationTags, @QueryParam("name") String name, @QueryParam("deSelects") Set<String> unselectedFields) - Specified by:
getAppsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getActivities
@GET @Path("/scheduler/activities") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ActivitiesInfo getActivities(@Context javax.servlet.http.HttpServletRequest hsr, @QueryParam("nodeId") String nodeId, @QueryParam("groupBy") String groupBy) - Specified by:
getActivitiesin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getBulkActivities
@GET @Path("/scheduler/bulk-activities") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.BulkActivitiesInfo getBulkActivities(@Context javax.servlet.http.HttpServletRequest hsr, @QueryParam("groupBy") String groupBy, @QueryParam("activitiesCount") @DefaultValue("10") int activitiesCount) throws InterruptedException - Specified by:
getBulkActivitiesin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
InterruptedException
-
getAppActivities
@GET @Path("/scheduler/app-activities/{appid}") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfo getAppActivities(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId, @QueryParam("maxTime") String time, @QueryParam("requestPriorities") Set<String> requestPriorities, @QueryParam("allocationRequestIds") Set<String> allocationRequestIds, @QueryParam("groupBy") String groupBy, @QueryParam("limit") String limit, @QueryParam("actions") Set<String> actions, @QueryParam("summarize") @DefaultValue("false") boolean summarize) - Specified by:
getAppActivitiesin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getAppStatistics
@GET @Path("/appstatistics") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationStatisticsInfo getAppStatistics(@Context javax.servlet.http.HttpServletRequest hsr, @QueryParam("states") Set<String> stateQueries, @QueryParam("applicationTypes") Set<String> typeQueries) - Specified by:
getAppStatisticsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getApp
@GET @Path("/apps/{appid}") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo getApp(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId, @QueryParam("deSelects") Set<String> unselectedFields) - Specified by:
getAppin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
getAppState
@GET @Path("/apps/{appid}/state") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState getAppState(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
getAppStatein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
updateAppState
@PUT @Path("/apps/{appid}/state") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response updateAppState(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState targetState, @Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException - Specified by:
updateAppStatein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOException
-
getNodeToLabels
@GET @Path("/get-node-to-labels") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfo getNodeToLabels(@Context javax.servlet.http.HttpServletRequest hsr) throws IOException - Specified by:
getNodeToLabelsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
IOException
-
getLabelsToNodes
@GET @Path("/label-mappings") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfo getLabelsToNodes(@QueryParam("labels") Set<String> labels) throws IOException - Specified by:
getLabelsToNodesin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
IOException
-
replaceLabelsOnNodes
@POST @Path("/replace-node-to-labels") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response replaceLabelsOnNodes(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList newNodeToLabels, @Context javax.servlet.http.HttpServletRequest hsr) throws Exception - Specified by:
replaceLabelsOnNodesin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
Exception
-
replaceLabelsOnNode
@POST @Path("/nodes/{nodeId}/replace-labels") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response replaceLabelsOnNode(@QueryParam("labels") Set<String> newNodeLabelsName, @Context javax.servlet.http.HttpServletRequest hsr, @PathParam("nodeId") String nodeId) throws Exception - Specified by:
replaceLabelsOnNodein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
Exception
-
getClusterNodeLabels
@GET @Path("/get-node-labels") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo getClusterNodeLabels(@Context javax.servlet.http.HttpServletRequest hsr) throws IOException - Specified by:
getClusterNodeLabelsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
IOException
-
addToClusterNodeLabels
@POST @Path("/add-node-labels") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response addToClusterNodeLabels(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo newNodeLabels, @Context javax.servlet.http.HttpServletRequest hsr) throws Exception - Specified by:
addToClusterNodeLabelsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
Exception
-
removeFromClusterNodeLabels
@POST @Path("/remove-node-labels") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response removeFromClusterNodeLabels(@QueryParam("labels") Set<String> oldNodeLabels, @Context javax.servlet.http.HttpServletRequest hsr) throws Exception - Specified by:
removeFromClusterNodeLabelsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
Exception
-
getLabelsOnNode
@GET @Path("/nodes/{nodeId}/get-labels") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo getLabelsOnNode(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("nodeId") String nodeId) throws IOException - Specified by:
getLabelsOnNodein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
IOException
-
getAppPriority
@GET @Path("/apps/{appid}/priority") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority getAppPriority(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
getAppPriorityin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
updateApplicationPriority
@PUT @Path("/apps/{appid}/priority") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response updateApplicationPriority(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority targetPriority, @Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException - Specified by:
updateApplicationPriorityin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOException
-
getAppQueue
@GET @Path("/apps/{appid}/queue") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue getAppQueue(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
getAppQueuein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
updateAppQueue
@PUT @Path("/apps/{appid}/queue") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response updateAppQueue(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue targetQueue, @Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException - Specified by:
updateAppQueuein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOException
-
createNewApplication
@POST @Path("/apps/new-application") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response createNewApplication(@Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Specified by:
createNewApplicationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
submitApplication
@POST @Path("/apps") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response submitApplication(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo newApp, @Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Specified by:
submitApplicationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
postDelegationToken
@POST @Path("/delegation-token") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response postDelegationToken(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken tokenData, @Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException, Exception - Specified by:
postDelegationTokenin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionException
-
postDelegationTokenExpiration
@POST @Path("/delegation-token/expiration") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response postDelegationTokenExpiration(@Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, Exception - Specified by:
postDelegationTokenExpirationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionException
-
cancelDelegationToken
@DELETE @Path("/delegation-token") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response cancelDelegationToken(@Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException, Exception - Specified by:
cancelDelegationTokenin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionException
-
createNewReservation
@POST @Path("/reservation/new-reservation") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response createNewReservation(@Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Specified by:
createNewReservationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
submitReservation
@POST @Path("/reservation/submit") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response submitReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo resContext, @Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Specified by:
submitReservationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
updateReservation
@POST @Path("/reservation/update") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response updateReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo resContext, @Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Specified by:
updateReservationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
deleteReservation
@POST @Path("/reservation/delete") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response deleteReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo resContext, @Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Specified by:
deleteReservationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
listReservation
@GET @Path("/reservation/list") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response listReservation(@QueryParam("queue") @DefaultValue("default") String queue, @QueryParam("reservation-id") @DefaultValue("") String reservationId, @QueryParam("start-time") @DefaultValue("0") long startTime, @QueryParam("end-time") @DefaultValue("-1") long endTime, @QueryParam("include-resource-allocations") @DefaultValue("false") boolean includeResourceAllocations, @Context javax.servlet.http.HttpServletRequest hsr) throws Exception - Specified by:
listReservationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
Exception
-
getAppTimeout
@GET @Path("/apps/{appid}/timeouts/{type}") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo getAppTimeout(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId, @PathParam("type") String type) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
getAppTimeoutin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
getAppTimeouts
@GET @Path("/apps/{appid}/timeouts") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfo getAppTimeouts(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
getAppTimeoutsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
updateApplicationTimeout
@PUT @Path("/apps/{appid}/timeout") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response updateApplicationTimeout(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo appTimeout, @Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException - Specified by:
updateApplicationTimeoutin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOException
-
getAppAttempts
@GET @Path("/apps/{appid}/appattempts") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptsInfo getAppAttempts(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("appid") String appId) - Specified by:
getAppAttemptsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
-
checkUserAccessToQueue
@GET @Path("/queues/{queue}/access") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.RMQueueAclInfo checkUserAccessToQueue(@PathParam("queue") String queue, @QueryParam("user") String username, @QueryParam("queue-acl-type") @DefaultValue("SUBMIT_APPLICATIONS") String queueAclType, @Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
checkUserAccessToQueuein interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
getAppAttempt
@GET @Path("/apps/{appid}/appattempts/{appattemptid}") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo getAppAttempt(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @PathParam("appattemptid") String appAttemptId) -
getContainers
@GET @Path("/apps/{appid}/appattempts/{appattemptid}/containers") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo getContainers(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @PathParam("appattemptid") String appAttemptId) -
getContainer
@GET @Path("/apps/{appid}/appattempts/{appattemptid}/containers/{containerid}") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo getContainer(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, @PathParam("appid") String appId, @PathParam("appattemptid") String appAttemptId, @PathParam("containerid") String containerId) -
updateSchedulerConfiguration
@PUT @Path("/scheduler-conf") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) @Consumes({"application/json","application/xml"}) public javax.ws.rs.core.Response updateSchedulerConfiguration(org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo mutationInfo, @Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, InterruptedException - Specified by:
updateSchedulerConfigurationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionInterruptedException
-
getSchedulerConfiguration
@GET @Path("/scheduler-conf") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response getSchedulerConfiguration(javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
getSchedulerConfigurationin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
setResponse
@VisibleForTesting protected void setResponse(javax.servlet.http.HttpServletResponse response) -
signalToContainer
@POST @Path("/containers/{containerid}/signal/{command}") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response signalToContainer(@PathParam("containerid") String containerId, @PathParam("command") String command, @Context javax.servlet.http.HttpServletRequest req) throws org.apache.hadoop.security.authorize.AuthorizationException - Specified by:
signalToContainerin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
getRMNodeLabels
@GET @Path("/get-rm-node-labels") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo getRMNodeLabels(@Context javax.servlet.http.HttpServletRequest hsr) throws IOException - Specified by:
getRMNodeLabelsin interfaceorg.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol- Throws:
IOException
-
getRouter
-