yarn_service_protos.proto 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. option java_package = "org.apache.hadoop.yarn.proto";
  19. option java_outer_classname = "YarnServiceProtos";
  20. option java_generic_services = true;
  21. option java_generate_equals_and_hash = true;
  22. import "Security.proto";
  23. import "yarn_protos.proto";
  24. //////////////////////////////////////////////////////
  25. /////// AM_RM_Protocol ///////////////////////////////
  26. //////////////////////////////////////////////////////
  27. message RegisterApplicationMasterRequestProto {
  28. optional ApplicationAttemptIdProto application_attempt_id = 1;
  29. optional string host = 2;
  30. optional int32 rpc_port = 3;
  31. optional string tracking_url = 4;
  32. }
  33. message RegisterApplicationMasterResponseProto {
  34. optional ResourceProto minimumCapability = 1;
  35. optional ResourceProto maximumCapability = 2;
  36. repeated ApplicationACLMapProto application_ACLs = 3;
  37. }
  38. message FinishApplicationMasterRequestProto {
  39. optional ApplicationAttemptIdProto application_attempt_id = 1;
  40. optional string diagnostics = 2;
  41. optional string tracking_url = 3;
  42. optional FinalApplicationStatusProto final_application_status = 4;
  43. }
  44. message FinishApplicationMasterResponseProto {
  45. }
  46. message AllocateRequestProto {
  47. optional ApplicationAttemptIdProto application_attempt_id = 1;
  48. repeated ResourceRequestProto ask = 2;
  49. repeated ContainerIdProto release = 3;
  50. optional ResourceBlacklistRequestProto blacklist_request = 4;
  51. optional int32 response_id = 5;
  52. optional float progress = 6;
  53. }
  54. message AllocateResponseProto {
  55. optional bool resync = 1;
  56. optional int32 response_id = 2;
  57. repeated ContainerProto allocated_containers = 3;
  58. repeated ContainerStatusProto completed_container_statuses = 4;
  59. optional ResourceProto limit = 5;
  60. repeated NodeReportProto updated_nodes = 6;
  61. optional int32 num_cluster_nodes = 7;
  62. optional PreemptionMessageProto preempt = 8;
  63. repeated hadoop.common.TokenProto nm_tokens = 9;
  64. }
  65. //////////////////////////////////////////////////////
  66. /////// client_RM_Protocol ///////////////////////////
  67. //////////////////////////////////////////////////////
  68. message GetNewApplicationRequestProto {
  69. }
  70. message GetNewApplicationResponseProto {
  71. optional ApplicationIdProto application_id = 1;
  72. optional ResourceProto minimumCapability = 2;
  73. optional ResourceProto maximumCapability = 3;
  74. }
  75. message GetApplicationReportRequestProto {
  76. optional ApplicationIdProto application_id = 1;
  77. }
  78. message GetApplicationReportResponseProto {
  79. optional ApplicationReportProto application_report = 1;
  80. }
  81. message SubmitApplicationRequestProto {
  82. optional ApplicationSubmissionContextProto application_submission_context= 1;
  83. }
  84. message SubmitApplicationResponseProto {
  85. }
  86. message KillApplicationRequestProto {
  87. optional ApplicationIdProto application_id = 1;
  88. }
  89. message KillApplicationResponseProto {
  90. }
  91. message GetClusterMetricsRequestProto {
  92. }
  93. message GetClusterMetricsResponseProto {
  94. optional YarnClusterMetricsProto cluster_metrics = 1;
  95. }
  96. message GetAllApplicationsRequestProto {
  97. }
  98. message GetAllApplicationsResponseProto {
  99. repeated ApplicationReportProto applications = 1;
  100. }
  101. message GetClusterNodesRequestProto {
  102. }
  103. message GetClusterNodesResponseProto {
  104. repeated NodeReportProto nodeReports = 1;
  105. }
  106. message GetQueueInfoRequestProto {
  107. optional string queueName = 1;
  108. optional bool includeApplications = 2;
  109. optional bool includeChildQueues = 3;
  110. optional bool recursive = 4;
  111. }
  112. message GetQueueInfoResponseProto {
  113. optional QueueInfoProto queueInfo = 1;
  114. }
  115. message GetQueueUserAclsInfoRequestProto {
  116. }
  117. message GetQueueUserAclsInfoResponseProto {
  118. repeated QueueUserACLInfoProto queueUserAcls = 1;
  119. }
  120. //////////////////////////////////////////////////////
  121. /////// client_NM_Protocol ///////////////////////////
  122. //////////////////////////////////////////////////////
  123. message StartContainerRequestProto {
  124. optional ContainerLaunchContextProto container_launch_context = 1;
  125. optional hadoop.common.TokenProto container_token = 2;
  126. }
  127. message StartContainerResponseProto {
  128. repeated StringBytesMapProto service_response = 1;
  129. }
  130. message StopContainerRequestProto {
  131. optional ContainerIdProto container_id = 1;
  132. }
  133. message StopContainerResponseProto {
  134. }
  135. message GetContainerStatusRequestProto {
  136. optional ContainerIdProto container_id = 1;
  137. }
  138. message GetContainerStatusResponseProto {
  139. optional ContainerStatusProto status = 1;
  140. }