2011-08-25 17:16:36 +00:00
|
|
|
/**
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
option java_package = "org.apache.hadoop.yarn.proto";
|
|
|
|
option java_outer_classname = "YarnServiceProtos";
|
|
|
|
option java_generic_services = true;
|
|
|
|
option java_generate_equals_and_hash = true;
|
|
|
|
|
2013-01-07 11:08:21 +00:00
|
|
|
import "Security.proto";
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
import "yarn_protos.proto";
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////
|
|
|
|
/////// AM_RM_Protocol ///////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////
|
|
|
|
message RegisterApplicationMasterRequestProto {
|
|
|
|
optional ApplicationAttemptIdProto application_attempt_id = 1;
|
|
|
|
optional string host = 2;
|
|
|
|
optional int32 rpc_port = 3;
|
|
|
|
optional string tracking_url = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RegisterApplicationMasterResponseProto {
|
|
|
|
optional ResourceProto minimumCapability = 1;
|
|
|
|
optional ResourceProto maximumCapability = 2;
|
2011-10-20 11:45:38 +00:00
|
|
|
repeated ApplicationACLMapProto application_ACLs = 3;
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message FinishApplicationMasterRequestProto {
|
|
|
|
optional ApplicationAttemptIdProto application_attempt_id = 1;
|
|
|
|
optional string diagnostics = 2;
|
|
|
|
optional string tracking_url = 3;
|
2011-09-30 12:46:32 +00:00
|
|
|
optional FinalApplicationStatusProto final_application_status = 4;
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message FinishApplicationMasterResponseProto {
|
|
|
|
}
|
|
|
|
|
|
|
|
message AllocateRequestProto {
|
|
|
|
optional ApplicationAttemptIdProto application_attempt_id = 1;
|
|
|
|
repeated ResourceRequestProto ask = 2;
|
|
|
|
repeated ContainerIdProto release = 3;
|
|
|
|
optional int32 response_id = 4;
|
|
|
|
optional float progress = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AllocateResponseProto {
|
2013-03-20 20:44:35 +00:00
|
|
|
optional bool reboot = 1;
|
|
|
|
optional int32 response_id = 2;
|
|
|
|
repeated ContainerProto allocated_containers = 3;
|
|
|
|
repeated ContainerStatusProto completed_container_statuses = 4;
|
|
|
|
optional ResourceProto limit = 5;
|
|
|
|
repeated NodeReportProto updated_nodes = 6;
|
|
|
|
optional int32 num_cluster_nodes = 7;
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////
|
|
|
|
/////// client_RM_Protocol ///////////////////////////
|
|
|
|
//////////////////////////////////////////////////////
|
|
|
|
|
2011-09-28 04:20:16 +00:00
|
|
|
message GetNewApplicationRequestProto {
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
2011-09-28 04:20:16 +00:00
|
|
|
message GetNewApplicationResponseProto {
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
optional ApplicationIdProto application_id = 1;
|
2011-09-28 04:20:16 +00:00
|
|
|
optional ResourceProto minimumCapability = 2;
|
|
|
|
optional ResourceProto maximumCapability = 3;
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetApplicationReportRequestProto {
|
|
|
|
optional ApplicationIdProto application_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetApplicationReportResponseProto {
|
|
|
|
optional ApplicationReportProto application_report = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SubmitApplicationRequestProto {
|
|
|
|
optional ApplicationSubmissionContextProto application_submission_context= 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SubmitApplicationResponseProto {
|
|
|
|
}
|
|
|
|
|
2011-09-27 20:30:24 +00:00
|
|
|
message KillApplicationRequestProto {
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
optional ApplicationIdProto application_id = 1;
|
|
|
|
}
|
|
|
|
|
2011-09-27 20:30:24 +00:00
|
|
|
message KillApplicationResponseProto {
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetClusterMetricsRequestProto {
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetClusterMetricsResponseProto {
|
|
|
|
optional YarnClusterMetricsProto cluster_metrics = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetAllApplicationsRequestProto {
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetAllApplicationsResponseProto {
|
|
|
|
repeated ApplicationReportProto applications = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetClusterNodesRequestProto {
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetClusterNodesResponseProto {
|
2011-09-30 12:46:32 +00:00
|
|
|
repeated NodeReportProto nodeReports = 1;
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetQueueInfoRequestProto {
|
|
|
|
optional string queueName = 1;
|
|
|
|
optional bool includeApplications = 2;
|
|
|
|
optional bool includeChildQueues = 3;
|
|
|
|
optional bool recursive = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetQueueInfoResponseProto {
|
|
|
|
optional QueueInfoProto queueInfo = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetQueueUserAclsInfoRequestProto {
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetQueueUserAclsInfoResponseProto {
|
2011-09-30 12:46:32 +00:00
|
|
|
repeated QueueUserACLInfoProto queueUserAcls = 1;
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
2012-01-11 01:50:10 +00:00
|
|
|
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
//////////////////////////////////////////////////////
|
|
|
|
/////// client_NM_Protocol ///////////////////////////
|
|
|
|
//////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
message StartContainerRequestProto {
|
|
|
|
optional ContainerLaunchContextProto container_launch_context = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StartContainerResponseProto {
|
2011-08-31 11:38:32 +00:00
|
|
|
repeated StringBytesMapProto service_response = 1;
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 11:07:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message StopContainerRequestProto {
|
|
|
|
optional ContainerIdProto container_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StopContainerResponseProto {
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetContainerStatusRequestProto {
|
|
|
|
optional ContainerIdProto container_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetContainerStatusResponseProto {
|
|
|
|
optional ContainerStatusProto status = 1;
|
|
|
|
}
|