@Path(value="/ws/v1/cluster") public class RouterWebServices extends Object implements org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
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.Modifier and Type | Class and Description |
---|---|
static class |
RouterWebServices.RequestInterceptorChainWrapper
Private structure for encapsulating RequestInterceptor and user instances.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_END_TIME |
static String |
DEFAULT_INCLUDE_RESOURCE |
static String |
DEFAULT_QUEUE |
static String |
DEFAULT_RESERVATION_ID |
static String |
DEFAULT_START_TIME |
Constructor and Description |
---|
RouterWebServices(Router router,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addToClusterNodeLabels(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo newNodeLabels,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
cancelDelegationToken(javax.servlet.http.HttpServletRequest hsr) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.RMQueueAclInfo |
checkUserAccessToQueue(String queue,
String username,
String queueAclType,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
createNewApplication(javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
createNewReservation(javax.servlet.http.HttpServletRequest hsr) |
protected RESTRequestInterceptor |
createRequestInterceptorChain()
This method creates and returns reference of the first intercepter in the
chain of request intercepter instances.
|
javax.ws.rs.core.Response |
deleteReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo resContext,
javax.servlet.http.HttpServletRequest hsr) |
String |
dumpSchedulerLogs(String time,
javax.servlet.http.HttpServletRequest hsr) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo |
get() |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ActivitiesInfo |
getActivities(javax.servlet.http.HttpServletRequest hsr,
String nodeId,
String groupBy) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo |
getApp(javax.servlet.http.HttpServletRequest hsr,
String appId,
Set<String> unselectedFields) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfo |
getAppActivities(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.AppAttemptInfo |
getAppAttempt(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptsInfo |
getAppAttempts(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority |
getAppPriority(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue |
getAppQueue(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfo |
getApps(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.AppState |
getAppState(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationStatisticsInfo |
getAppStatistics(javax.servlet.http.HttpServletRequest hsr,
Set<String> stateQueries,
Set<String> typeQueries) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo |
getAppTimeout(javax.servlet.http.HttpServletRequest hsr,
String appId,
String type) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfo |
getAppTimeouts(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo |
getClusterInfo() |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo |
getClusterMetricsInfo() |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo |
getClusterNodeLabels(javax.servlet.http.HttpServletRequest hsr) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterUserInfo |
getClusterUserInfo(javax.servlet.http.HttpServletRequest hsr) |
org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo |
getContainer(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId,
String containerId) |
org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo |
getContainers(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId) |
protected RouterWebServices.RequestInterceptorChainWrapper |
getInterceptorChain(javax.servlet.http.HttpServletRequest hsr) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo |
getLabelsOnNode(javax.servlet.http.HttpServletRequest hsr,
String nodeId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfo |
getLabelsToNodes(Set<String> labels) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo |
getNode(String nodeId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfo |
getNodes(String states) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfo |
getNodeToLabels(javax.servlet.http.HttpServletRequest hsr) |
protected Map<String,RouterWebServices.RequestInterceptorChainWrapper> |
getPipelines()
Gets the Request intercepter chains for all the users.
|
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfo |
getSchedulerInfo() |
javax.ws.rs.core.Response |
listReservation(String queue,
String reservationId,
long startTime,
long endTime,
boolean includeResourceAllocations,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
postDelegationToken(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken tokenData,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
postDelegationTokenExpiration(javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
removeFromCluserNodeLabels(Set<String> oldNodeLabels,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
replaceLabelsOnNode(Set<String> newNodeLabelsName,
javax.servlet.http.HttpServletRequest hsr,
String nodeId) |
javax.ws.rs.core.Response |
replaceLabelsOnNodes(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList newNodeToLabels,
javax.servlet.http.HttpServletRequest hsr) |
protected void |
setResponse(javax.servlet.http.HttpServletResponse response) |
javax.ws.rs.core.Response |
signalToContainer(String containerId,
String command,
javax.servlet.http.HttpServletRequest req) |
javax.ws.rs.core.Response |
submitApplication(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo newApp,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
submitReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo resContext,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
updateApplicationPriority(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority targetPriority,
javax.servlet.http.HttpServletRequest hsr,
String appId) |
javax.ws.rs.core.Response |
updateApplicationTimeout(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo appTimeout,
javax.servlet.http.HttpServletRequest hsr,
String appId) |
javax.ws.rs.core.Response |
updateAppQueue(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue targetQueue,
javax.servlet.http.HttpServletRequest hsr,
String appId) |
javax.ws.rs.core.Response |
updateAppState(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.ResourceInfo |
updateNodeResource(javax.servlet.http.HttpServletRequest hsr,
String nodeId,
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo resourceOption) |
javax.ws.rs.core.Response |
updateReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo resContext,
javax.servlet.http.HttpServletRequest hsr) |
public static final String DEFAULT_QUEUE
public static final String DEFAULT_RESERVATION_ID
public static final String DEFAULT_START_TIME
public static final String DEFAULT_END_TIME
public static final String DEFAULT_INCLUDE_RESOURCE
@Inject public RouterWebServices(Router router, org.apache.hadoop.conf.Configuration conf)
protected RouterWebServices.RequestInterceptorChainWrapper getInterceptorChain(javax.servlet.http.HttpServletRequest hsr)
protected Map<String,RouterWebServices.RequestInterceptorChainWrapper> getPipelines()
protected RESTRequestInterceptor createRequestInterceptorChain()
@GET @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo get()
get
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/info") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo getClusterInfo()
getClusterInfo
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/userinfo") @Produces(value={"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)
getClusterUserInfo
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/metrics") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo getClusterMetricsInfo()
getClusterMetricsInfo
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/scheduler") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfo getSchedulerInfo()
getSchedulerInfo
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@POST @Path(value="/scheduler/logs") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public String dumpSchedulerLogs(@FormParam(value="time") String time, @Context javax.servlet.http.HttpServletRequest hsr) throws IOException
dumpSchedulerLogs
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
IOException
@GET @Path(value="/nodes") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfo getNodes(@QueryParam(value="states") String states)
getNodes
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/nodes/{nodeId}") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo getNode(@PathParam(value="nodeId") String nodeId)
getNode
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@POST @Path(value="/nodes/{nodeId}/resource") @Consumes(value={"application/json","application/xml"}) @Produces(value={"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(value="nodeId") String nodeId, org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo resourceOption) throws org.apache.hadoop.security.authorize.AuthorizationException
updateNodeResource
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
@GET @Path(value="/apps") @Produces(value={"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(value="state") String stateQuery, @QueryParam(value="states") Set<String> statesQuery, @QueryParam(value="finalStatus") String finalStatusQuery, @QueryParam(value="user") String userQuery, @QueryParam(value="queue") String queueQuery, @QueryParam(value="limit") String count, @QueryParam(value="startedTimeBegin") String startedBegin, @QueryParam(value="startedTimeEnd") String startedEnd, @QueryParam(value="finishedTimeBegin") String finishBegin, @QueryParam(value="finishedTimeEnd") String finishEnd, @QueryParam(value="applicationTypes") Set<String> applicationTypes, @QueryParam(value="applicationTags") Set<String> applicationTags, @QueryParam(value="name") String name, @QueryParam(value="deSelects") Set<String> unselectedFields)
getApps
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/scheduler/activities") @Produces(value={"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(value="nodeId") String nodeId, @QueryParam(value="groupBy") String groupBy)
getActivities
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/scheduler/app-activities/{appid}") @Produces(value={"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, @QueryParam(value="appId") String appId, @QueryParam(value="maxTime") String time, @QueryParam(value="requestPriorities") Set<String> requestPriorities, @QueryParam(value="allocationRequestIds") Set<String> allocationRequestIds, @QueryParam(value="groupBy") String groupBy, @QueryParam(value="limit") String limit, @QueryParam(value="actions") Set<String> actions, @QueryParam(value="summarize") @DefaultValue(value="false") boolean summarize)
getAppActivities
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/appstatistics") @Produces(value={"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(value="states") Set<String> stateQueries, @QueryParam(value="applicationTypes") Set<String> typeQueries)
getAppStatistics
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/apps/{appid}") @Produces(value={"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(value="appid") String appId, @QueryParam(value="deSelects") Set<String> unselectedFields)
getApp
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/apps/{appid}/state") @Produces(value={"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(value="appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException
getAppState
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
@PUT @Path(value="/apps/{appid}/state") @Produces(value={"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(value="appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException
updateAppState
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
org.apache.hadoop.yarn.exceptions.YarnException
InterruptedException
IOException
@GET @Path(value="/get-node-to-labels") @Produces(value={"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
getNodeToLabels
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
IOException
@GET @Path(value="/label-mappings") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfo getLabelsToNodes(@QueryParam(value="labels") Set<String> labels) throws IOException
getLabelsToNodes
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
IOException
@POST @Path(value="/replace-node-to-labels") @Produces(value={"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
replaceLabelsOnNodes
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
Exception
@POST @Path(value="/nodes/{nodeId}/replace-labels") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response replaceLabelsOnNode(@QueryParam(value="labels") Set<String> newNodeLabelsName, @Context javax.servlet.http.HttpServletRequest hsr, @PathParam(value="nodeId") String nodeId) throws Exception
replaceLabelsOnNode
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
Exception
@GET @Path(value="/get-node-labels") @Produces(value={"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
getClusterNodeLabels
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
IOException
@POST @Path(value="/add-node-labels") @Produces(value={"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
addToClusterNodeLabels
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
Exception
@POST @Path(value="/remove-node-labels") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response removeFromCluserNodeLabels(@QueryParam(value="labels") Set<String> oldNodeLabels, @Context javax.servlet.http.HttpServletRequest hsr) throws Exception
removeFromCluserNodeLabels
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
Exception
@GET @Path(value="/nodes/{nodeId}/get-labels") @Produces(value={"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(value="nodeId") String nodeId) throws IOException
getLabelsOnNode
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
IOException
@GET @Path(value="/apps/{appid}/priority") @Produces(value={"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(value="appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException
getAppPriority
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
@PUT @Path(value="/apps/{appid}/priority") @Produces(value={"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(value="appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException
updateApplicationPriority
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
org.apache.hadoop.yarn.exceptions.YarnException
InterruptedException
IOException
@GET @Path(value="/apps/{appid}/queue") @Produces(value={"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(value="appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException
getAppQueue
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
@PUT @Path(value="/apps/{appid}/queue") @Produces(value={"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(value="appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException
updateAppQueue
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
org.apache.hadoop.yarn.exceptions.YarnException
InterruptedException
IOException
@POST @Path(value="/apps/new-application") @Produces(value={"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
createNewApplication
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
InterruptedException
@POST @Path(value="/apps") @Produces(value={"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
submitApplication
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
InterruptedException
@POST @Path(value="/delegation-token") @Produces(value={"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
postDelegationToken
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
InterruptedException
Exception
@POST @Path(value="/delegation-token/expiration") @Produces(value={"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
postDelegationTokenExpiration
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
Exception
@DELETE @Path(value="/delegation-token") @Produces(value={"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
cancelDelegationToken
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
InterruptedException
Exception
@POST @Path(value="/reservation/new-reservation") @Produces(value={"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
createNewReservation
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
InterruptedException
@POST @Path(value="/reservation/submit") @Produces(value={"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
submitReservation
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
InterruptedException
@POST @Path(value="/reservation/update") @Produces(value={"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
updateReservation
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
InterruptedException
@POST @Path(value="/reservation/delete") @Produces(value={"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
deleteReservation
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
IOException
InterruptedException
@GET @Path(value="/reservation/list") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response listReservation(@QueryParam(value="queue") @DefaultValue(value="default") String queue, @QueryParam(value="reservation-id") @DefaultValue(value="") String reservationId, @QueryParam(value="start-time") @DefaultValue(value="0") long startTime, @QueryParam(value="end-time") @DefaultValue(value="-1") long endTime, @QueryParam(value="include-resource-allocations") @DefaultValue(value="false") boolean includeResourceAllocations, @Context javax.servlet.http.HttpServletRequest hsr) throws Exception
listReservation
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
Exception
@GET @Path(value="/apps/{appid}/timeouts/{type}") @Produces(value={"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(value="appid") String appId, @PathParam(value="type") String type) throws org.apache.hadoop.security.authorize.AuthorizationException
getAppTimeout
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
@GET @Path(value="/apps/{appid}/timeouts") @Produces(value={"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(value="appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException
getAppTimeouts
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
@PUT @Path(value="/apps/{appid}/timeout") @Produces(value={"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(value="appid") String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException
updateApplicationTimeout
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
org.apache.hadoop.yarn.exceptions.YarnException
InterruptedException
IOException
@GET @Path(value="/apps/{appid}/appattempts") @Produces(value={"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(value="appid") String appId)
getAppAttempts
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
@GET @Path(value="/queues/{queue}/access") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.RMQueueAclInfo checkUserAccessToQueue(@PathParam(value="queue") String queue, @QueryParam(value="user") String username, @QueryParam(value="queue-acl-type") @DefaultValue(value="SUBMIT_APPLICATIONS") String queueAclType, @Context javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException
checkUserAccessToQueue
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
@GET @Path(value="/apps/{appid}/appattempts/{appattemptid}") @Produces(value={"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(value="appid") String appId, @PathParam(value="appattemptid") String appAttemptId)
@GET @Path(value="/apps/{appid}/appattempts/{appattemptid}/containers") @Produces(value={"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(value="appid") String appId, @PathParam(value="appattemptid") String appAttemptId)
@GET @Path(value="/apps/{appid}/appattempts/{appattemptid}/containers/{containerid}") @Produces(value={"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(value="appid") String appId, @PathParam(value="appattemptid") String appAttemptId, @PathParam(value="containerid") String containerId)
protected void setResponse(javax.servlet.http.HttpServletResponse response)
@POST @Path(value="/containers/{containerid}/signal/{command}") @Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"}) public javax.ws.rs.core.Response signalToContainer(@PathParam(value="containerid") String containerId, @PathParam(value="command") String command, @Context javax.servlet.http.HttpServletRequest req) throws org.apache.hadoop.security.authorize.AuthorizationException
signalToContainer
in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
org.apache.hadoop.security.authorize.AuthorizationException
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.