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.
|
|
|
|
*/
|
|
|
|
|
2013-06-21 19:53:21 +00:00
|
|
|
/**
|
|
|
|
* These .proto interfaces are public and stable.
|
|
|
|
* Please see http://wiki.apache.org/hadoop/Compatibility
|
|
|
|
* for what changes are allowed for a *stable* .proto interface.
|
|
|
|
*/
|
|
|
|
|
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 = "YarnProtos";
|
|
|
|
option java_generic_services = true;
|
|
|
|
option java_generate_equals_and_hash = true;
|
2013-09-16 14:04:04 +00:00
|
|
|
package hadoop.yarn;
|
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
|
|
|
|
2013-01-07 11:08:21 +00:00
|
|
|
import "Security.proto";
|
|
|
|
|
2013-05-10 21:49:28 +00:00
|
|
|
message SerializedExceptionProto {
|
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 string message = 1;
|
|
|
|
optional string trace = 2;
|
|
|
|
optional string class_name = 3;
|
2013-05-10 21:49:28 +00:00
|
|
|
optional SerializedExceptionProto cause = 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 ApplicationIdProto {
|
|
|
|
optional int32 id = 1;
|
|
|
|
optional int64 cluster_timestamp = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ApplicationAttemptIdProto {
|
|
|
|
optional ApplicationIdProto application_id = 1;
|
|
|
|
optional int32 attemptId = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ContainerIdProto {
|
|
|
|
optional ApplicationIdProto app_id = 1;
|
|
|
|
optional ApplicationAttemptIdProto app_attempt_id = 2;
|
2014-09-12 17:33:33 +00:00
|
|
|
optional int64 id = 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 ResourceProto {
|
|
|
|
optional int32 memory = 1;
|
2013-01-09 05:08:23 +00:00
|
|
|
optional int32 virtual_cores = 2;
|
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
|
|
|
}
|
|
|
|
|
2013-11-05 21:23:53 +00:00
|
|
|
message ResourceOptionProto {
|
|
|
|
optional ResourceProto resource = 1;
|
|
|
|
optional int32 over_commit_timeout = 2;
|
|
|
|
}
|
|
|
|
|
2013-12-16 23:36:16 +00:00
|
|
|
message NodeResourceMapProto {
|
|
|
|
optional NodeIdProto node_id = 1;
|
|
|
|
optional ResourceOptionProto resource_option = 2;
|
|
|
|
}
|
|
|
|
|
2011-09-26 13:25:27 +00:00
|
|
|
message PriorityProto {
|
|
|
|
optional int32 priority = 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
|
|
|
enum ContainerStateProto {
|
|
|
|
C_NEW = 1;
|
|
|
|
C_RUNNING = 2;
|
|
|
|
C_COMPLETE = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ContainerProto {
|
|
|
|
optional ContainerIdProto id = 1;
|
|
|
|
optional NodeIdProto nodeId = 2;
|
|
|
|
optional string node_http_address = 3;
|
|
|
|
optional ResourceProto resource = 4;
|
2011-09-26 13:25:27 +00:00
|
|
|
optional PriorityProto priority = 5;
|
2013-04-04 03:41:18 +00:00
|
|
|
optional hadoop.common.TokenProto container_token = 6;
|
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
|
|
|
}
|
|
|
|
|
2014-01-26 04:51:10 +00:00
|
|
|
message ContainerReportProto {
|
|
|
|
optional ContainerIdProto container_id = 1;
|
|
|
|
optional ResourceProto resource = 2;
|
|
|
|
optional NodeIdProto node_id = 3;
|
|
|
|
optional PriorityProto priority = 4;
|
2014-06-24 21:43:22 +00:00
|
|
|
optional int64 creation_time = 5;
|
2014-01-26 04:51:10 +00:00
|
|
|
optional int64 finish_time = 6;
|
|
|
|
optional string diagnostics_info = 7 [default = "N/A"];
|
|
|
|
optional string log_url = 8;
|
|
|
|
optional int32 container_exit_status = 9;
|
|
|
|
optional ContainerStateProto container_state = 10;
|
|
|
|
}
|
|
|
|
|
2011-09-30 12:46:32 +00:00
|
|
|
enum YarnApplicationStateProto {
|
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
|
|
|
NEW = 1;
|
2013-04-17 20:19:43 +00:00
|
|
|
NEW_SAVING = 2;
|
|
|
|
SUBMITTED = 3;
|
|
|
|
ACCEPTED = 4;
|
|
|
|
RUNNING = 5;
|
|
|
|
FINISHED = 6;
|
|
|
|
FAILED = 7;
|
|
|
|
KILLED = 8;
|
2011-09-30 12:46:32 +00:00
|
|
|
}
|
|
|
|
|
2014-01-26 04:51:10 +00:00
|
|
|
enum YarnApplicationAttemptStateProto {
|
|
|
|
APP_ATTEMPT_NEW = 1;
|
|
|
|
APP_ATTEMPT_SUBMITTED = 2;
|
|
|
|
APP_ATTEMPT_SCHEDULED = 3;
|
|
|
|
APP_ATTEMPT_ALLOCATED_SAVING = 4;
|
|
|
|
APP_ATTEMPT_ALLOCATED = 5;
|
|
|
|
APP_ATTEMPT_LAUNCHED = 6;
|
|
|
|
APP_ATTEMPT_FAILED = 7;
|
|
|
|
APP_ATTEMPT_RUNNING = 8;
|
2014-02-13 00:59:19 +00:00
|
|
|
APP_ATTEMPT_FINISHING = 9;
|
|
|
|
APP_ATTEMPT_FINISHED = 10;
|
|
|
|
APP_ATTEMPT_KILLED = 11;
|
2014-01-26 04:51:10 +00:00
|
|
|
}
|
|
|
|
|
2011-09-30 12:46:32 +00:00
|
|
|
enum FinalApplicationStatusProto {
|
|
|
|
APP_UNDEFINED = 0;
|
|
|
|
APP_SUCCEEDED = 1;
|
|
|
|
APP_FAILED = 2;
|
|
|
|
APP_KILLED = 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 URLProto {
|
|
|
|
optional string scheme = 1;
|
2011-09-30 12:46:32 +00:00
|
|
|
optional string host = 2;
|
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 int32 port = 3;
|
|
|
|
optional string file = 4;
|
2013-10-01 22:28:02 +00:00
|
|
|
optional string userInfo = 5;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
enum LocalResourceVisibilityProto {
|
|
|
|
PUBLIC = 1;
|
|
|
|
PRIVATE = 2;
|
|
|
|
APPLICATION = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum LocalResourceTypeProto {
|
|
|
|
ARCHIVE = 1;
|
|
|
|
FILE = 2;
|
2012-09-26 15:22:21 +00:00
|
|
|
PATTERN = 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 LocalResourceProto {
|
|
|
|
optional URLProto resource = 1;
|
|
|
|
optional int64 size = 2;
|
|
|
|
optional int64 timestamp = 3;
|
|
|
|
optional LocalResourceTypeProto type = 4;
|
2012-09-26 15:22:21 +00:00
|
|
|
optional LocalResourceVisibilityProto visibility = 5;
|
|
|
|
optional string pattern = 6;
|
2014-11-12 17:31:05 +00:00
|
|
|
optional bool should_be_uploaded_to_shared_cache = 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
|
|
|
}
|
|
|
|
|
2011-10-12 23:29:01 +00:00
|
|
|
message ApplicationResourceUsageReportProto {
|
|
|
|
optional int32 num_used_containers = 1;
|
|
|
|
optional int32 num_reserved_containers = 2;
|
|
|
|
optional ResourceProto used_resources = 3;
|
|
|
|
optional ResourceProto reserved_resources = 4;
|
|
|
|
optional ResourceProto needed_resources = 5;
|
2014-09-11 01:19:53 +00:00
|
|
|
optional int64 memory_seconds = 6;
|
|
|
|
optional int64 vcore_seconds = 7;
|
2011-10-12 23:29:01 +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
|
|
|
message ApplicationReportProto {
|
|
|
|
optional ApplicationIdProto applicationId = 1;
|
|
|
|
optional string user = 2;
|
|
|
|
optional string queue = 3;
|
|
|
|
optional string name = 4;
|
|
|
|
optional string host = 5;
|
|
|
|
optional int32 rpc_port = 6;
|
2013-06-17 23:13:17 +00:00
|
|
|
optional hadoop.common.TokenProto client_to_am_token = 7;
|
2013-05-20 21:50:47 +00:00
|
|
|
optional YarnApplicationStateProto yarn_application_state = 8;
|
|
|
|
optional string trackingUrl = 9;
|
|
|
|
optional string diagnostics = 10 [default = "N/A"];
|
|
|
|
optional int64 startTime = 11;
|
|
|
|
optional int64 finishTime = 12;
|
|
|
|
optional FinalApplicationStatusProto final_application_status = 13;
|
|
|
|
optional ApplicationResourceUsageReportProto app_resource_Usage = 14;
|
|
|
|
optional string originalTrackingUrl = 15;
|
|
|
|
optional ApplicationAttemptIdProto currentApplicationAttemptId = 16;
|
|
|
|
optional float progress = 17;
|
2013-05-23 18:02:04 +00:00
|
|
|
optional string applicationType = 18;
|
2013-07-27 20:04:38 +00:00
|
|
|
optional hadoop.common.TokenProto am_rm_token = 19;
|
2014-02-05 04:55:00 +00:00
|
|
|
repeated string applicationTags = 20;
|
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
|
|
|
}
|
|
|
|
|
2014-01-26 04:51:10 +00:00
|
|
|
message ApplicationAttemptReportProto {
|
|
|
|
optional ApplicationAttemptIdProto application_attempt_id = 1;
|
|
|
|
optional string host = 2;
|
|
|
|
optional int32 rpc_port = 3;
|
|
|
|
optional string tracking_url = 4;
|
|
|
|
optional string diagnostics = 5 [default = "N/A"];
|
|
|
|
optional YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
|
|
|
|
optional ContainerIdProto am_container_id = 7;
|
2014-10-04 00:05:57 +00:00
|
|
|
optional string original_tracking_url = 8;
|
2014-01-26 04:51:10 +00:00
|
|
|
}
|
|
|
|
|
2012-03-26 05:45:29 +00:00
|
|
|
enum NodeStateProto {
|
|
|
|
NS_NEW = 1;
|
|
|
|
NS_RUNNING = 2;
|
|
|
|
NS_UNHEALTHY = 3;
|
|
|
|
NS_DECOMMISSIONED = 4;
|
|
|
|
NS_LOST = 5;
|
|
|
|
NS_REBOOTED = 6;
|
|
|
|
}
|
|
|
|
|
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 NodeIdProto {
|
|
|
|
optional string host = 1;
|
|
|
|
optional int32 port = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message NodeReportProto {
|
|
|
|
optional NodeIdProto nodeId = 1;
|
|
|
|
optional string httpAddress = 2;
|
|
|
|
optional string rackName = 3;
|
|
|
|
optional ResourceProto used = 4;
|
|
|
|
optional ResourceProto capability = 5;
|
|
|
|
optional int32 numContainers = 6;
|
2013-06-07 20:59:23 +00:00
|
|
|
optional NodeStateProto node_state = 7;
|
|
|
|
optional string health_report = 8;
|
|
|
|
optional int64 last_health_report_time = 9;
|
2014-10-31 05:59:31 +00:00
|
|
|
repeated string node_labels = 10;
|
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
|
|
|
}
|
|
|
|
|
2014-10-31 05:59:31 +00:00
|
|
|
message NodeIdToLabelsProto {
|
|
|
|
optional NodeIdProto nodeId = 1;
|
|
|
|
repeated string nodeLabels = 2;
|
|
|
|
}
|
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
|
|
|
|
2015-02-19 19:00:57 +00:00
|
|
|
message LabelsToNodeIdsProto {
|
|
|
|
optional string nodeLabels = 1;
|
|
|
|
repeated NodeIdProto nodeId = 2;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
////// From AM_RM_Protocol /////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
message ResourceRequestProto {
|
|
|
|
optional PriorityProto priority = 1;
|
2013-06-02 22:53:58 +00:00
|
|
|
optional string resource_name = 2;
|
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 ResourceProto capability = 3;
|
|
|
|
optional int32 num_containers = 4;
|
2013-05-31 17:26:18 +00:00
|
|
|
optional bool relax_locality = 5 [default = true];
|
2014-10-09 18:26:26 +00:00
|
|
|
optional string node_label_expression = 6;
|
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
|
|
|
}
|
|
|
|
|
2013-06-06 23:33:48 +00:00
|
|
|
enum AMCommandProto {
|
|
|
|
AM_RESYNC = 1;
|
|
|
|
AM_SHUTDOWN = 2;
|
|
|
|
}
|
|
|
|
|
2013-06-04 21:21:09 +00:00
|
|
|
message PreemptionMessageProto {
|
|
|
|
optional StrictPreemptionContractProto strictContract = 1;
|
|
|
|
optional PreemptionContractProto contract = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StrictPreemptionContractProto {
|
|
|
|
repeated PreemptionContainerProto container = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PreemptionContractProto {
|
|
|
|
repeated PreemptionResourceRequestProto resource = 1;
|
|
|
|
repeated PreemptionContainerProto container = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PreemptionContainerProto {
|
|
|
|
optional ContainerIdProto id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PreemptionResourceRequestProto {
|
|
|
|
optional ResourceRequestProto resource = 1;
|
|
|
|
}
|
|
|
|
|
2013-06-06 18:46:59 +00:00
|
|
|
message ResourceBlacklistRequestProto {
|
|
|
|
repeated string blacklist_additions = 1;
|
|
|
|
repeated string blacklist_removals = 2;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
////// From client_RM_Protocol /////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
message ApplicationSubmissionContextProto {
|
|
|
|
optional ApplicationIdProto application_id = 1;
|
2011-09-14 07:26:37 +00:00
|
|
|
optional string application_name = 2 [default = "N/A"];
|
2013-04-11 19:28:51 +00:00
|
|
|
optional string queue = 3 [default = "default"];
|
|
|
|
optional PriorityProto priority = 4;
|
|
|
|
optional ContainerLaunchContextProto am_container_spec = 5;
|
|
|
|
optional bool cancel_tokens_when_complete = 6 [default = true];
|
|
|
|
optional bool unmanaged_am = 7 [default = false];
|
|
|
|
optional int32 maxAppAttempts = 8 [default = 0];
|
|
|
|
optional ResourceProto resource = 9;
|
2013-05-23 18:02:04 +00:00
|
|
|
optional string applicationType = 10 [default = "YARN"];
|
2014-01-10 15:04:39 +00:00
|
|
|
optional bool keep_containers_across_application_attempts = 11 [default = false];
|
2014-02-05 04:55:00 +00:00
|
|
|
repeated string applicationTags = 12;
|
2014-09-14 01:04:05 +00:00
|
|
|
optional int64 attempt_failures_validity_interval = 13 [default = -1];
|
2014-09-23 17:36:57 +00:00
|
|
|
optional LogAggregationContextProto log_aggregation_context = 14;
|
2014-09-13 00:16:07 +00:00
|
|
|
optional ReservationIdProto reservation_id = 15;
|
2014-10-09 18:26:26 +00:00
|
|
|
optional string node_label_expression = 16;
|
|
|
|
optional ResourceRequestProto am_container_resource_request = 17;
|
2014-09-23 17:36:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message LogAggregationContextProto {
|
|
|
|
optional string include_pattern = 1 [default = ".*"];
|
|
|
|
optional string exclude_pattern = 2 [default = ""];
|
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-10-20 11:45:38 +00:00
|
|
|
enum ApplicationAccessTypeProto {
|
|
|
|
APPACCESS_VIEW_APP = 1;
|
|
|
|
APPACCESS_MODIFY_APP = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ApplicationACLMapProto {
|
|
|
|
optional ApplicationAccessTypeProto accessType = 1;
|
|
|
|
optional string acl = 2 [default = " "];
|
|
|
|
}
|
|
|
|
|
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 YarnClusterMetricsProto {
|
|
|
|
optional int32 num_node_managers = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum QueueStateProto {
|
|
|
|
Q_STOPPED = 1;
|
|
|
|
Q_RUNNING = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message QueueInfoProto {
|
|
|
|
optional string queueName = 1;
|
|
|
|
optional float capacity = 2;
|
|
|
|
optional float maximumCapacity = 3;
|
|
|
|
optional float currentCapacity = 4;
|
|
|
|
optional QueueStateProto state = 5;
|
|
|
|
repeated QueueInfoProto childQueues = 6;
|
|
|
|
repeated ApplicationReportProto applications = 7;
|
2014-10-09 22:46:24 +00:00
|
|
|
repeated string accessibleNodeLabels = 8;
|
|
|
|
optional string defaultNodeLabelExpression = 9;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
enum QueueACLProto {
|
2011-10-20 11:45:38 +00:00
|
|
|
QACL_SUBMIT_APPLICATIONS = 1;
|
|
|
|
QACL_ADMINISTER_QUEUE = 2;
|
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 QueueUserACLInfoProto {
|
|
|
|
optional string queueName = 1;
|
|
|
|
repeated QueueACLProto userAcls = 2;
|
|
|
|
}
|
|
|
|
|
2014-09-13 00:16:07 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
////// From reservation_protocol /////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
message ReservationIdProto {
|
|
|
|
optional int64 id = 1;
|
|
|
|
optional int64 cluster_timestamp = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReservationRequestProto {
|
|
|
|
optional ResourceProto capability = 1;
|
|
|
|
optional int32 num_containers = 2 [default = 1];
|
|
|
|
optional int32 concurrency = 3 [default = 1];
|
|
|
|
optional int64 duration = 4 [default = -1];
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReservationRequestsProto {
|
|
|
|
repeated ReservationRequestProto reservation_resources = 1;
|
|
|
|
optional ReservationRequestInterpreterProto interpreter = 2 [default = R_ALL];
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReservationDefinitionProto {
|
|
|
|
optional ReservationRequestsProto reservation_requests = 1;
|
|
|
|
optional int64 arrival = 2;
|
|
|
|
optional int64 deadline = 3;
|
|
|
|
optional string reservation_name = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum ReservationRequestInterpreterProto {
|
|
|
|
R_ANY = 0;
|
|
|
|
R_ALL = 1;
|
|
|
|
R_ORDER = 2;
|
|
|
|
R_ORDER_NO_GAP = 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
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
////// From container_manager //////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
message ContainerLaunchContextProto {
|
2013-05-24 03:22:54 +00:00
|
|
|
repeated StringLocalResourceMapProto localResources = 1;
|
|
|
|
optional bytes tokens = 2;
|
|
|
|
repeated StringBytesMapProto service_data = 3;
|
|
|
|
repeated StringStringMapProto environment = 4;
|
|
|
|
repeated string command = 5;
|
|
|
|
repeated ApplicationACLMapProto application_ACLs = 6;
|
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 ContainerStatusProto {
|
|
|
|
optional ContainerIdProto container_id = 1;
|
|
|
|
optional ContainerStateProto state = 2;
|
|
|
|
optional string diagnostics = 3 [default = "N/A"];
|
2011-09-13 00:05:51 +00:00
|
|
|
optional int32 exit_status = 4 [default = -1000];
|
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
|
|
|
}
|
|
|
|
|
2013-04-15 23:54:09 +00:00
|
|
|
enum ContainerExitStatusProto {
|
|
|
|
SUCCESS = 0;
|
|
|
|
INVALID = -1000;
|
|
|
|
ABORTED = -100;
|
|
|
|
DISKS_FAILED = -101;
|
|
|
|
}
|
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
|
|
|
|
2013-12-05 22:14:29 +00:00
|
|
|
message ContainerResourceIncreaseRequestProto {
|
|
|
|
optional ContainerIdProto container_id = 1;
|
|
|
|
optional ResourceProto capability = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ContainerResourceIncreaseProto {
|
|
|
|
optional ContainerIdProto container_id = 1;
|
|
|
|
optional ResourceProto capability = 2;
|
|
|
|
optional hadoop.common.TokenProto container_token = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ContainerResourceDecreaseProto {
|
|
|
|
optional ContainerIdProto container_id = 1;
|
|
|
|
optional ResourceProto capability = 2;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
////// From common//////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
message StringLocalResourceMapProto {
|
|
|
|
optional string key = 1;
|
|
|
|
optional LocalResourceProto value = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StringStringMapProto {
|
|
|
|
optional string key = 1;
|
|
|
|
optional string value = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StringBytesMapProto {
|
|
|
|
optional string key = 1;
|
|
|
|
optional bytes value = 2;
|
|
|
|
}
|