|
@@ -66,6 +66,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInf
|
|
|
import org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo;
|
|
|
import org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo;
|
|
|
import org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo;
|
|
|
+import org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo;
|
|
|
import org.apache.hadoop.yarn.webapp.util.WebAppUtils;
|
|
|
|
|
|
/**
|
|
@@ -565,6 +566,25 @@ public class DefaultRequestInterceptorREST
|
|
|
null, null, getConf(), client);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Response updateSchedulerConfiguration(SchedConfUpdateInfo mutationInfo,
|
|
|
+ HttpServletRequest req)
|
|
|
+ throws AuthorizationException, InterruptedException {
|
|
|
+ return RouterWebServiceUtil.genericForward(webAppAddress, req,
|
|
|
+ Response.class, HTTPMethods.PUT,
|
|
|
+ RMWSConsts.RM_WEB_SERVICE_PATH + RMWSConsts.SCHEDULER_CONF,
|
|
|
+ mutationInfo, null, getConf(), client);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Response getSchedulerConfiguration(HttpServletRequest req)
|
|
|
+ throws AuthorizationException {
|
|
|
+ return RouterWebServiceUtil.genericForward(webAppAddress, req,
|
|
|
+ Response.class, HTTPMethods.GET,
|
|
|
+ RMWSConsts.RM_WEB_SERVICE_PATH + RMWSConsts.SCHEDULER_CONF,
|
|
|
+ null, null, getConf(), client);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void setNextInterceptor(RESTRequestInterceptor next) {
|
|
|
throw new YarnRuntimeException("setNextInterceptor is being called on "
|