yarn_service_protos.proto 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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 maximumCapability = 1;
  35. optional bytes client_to_am_token_master_key = 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 NMTokenProto {
  55. optional NodeIdProto nodeId = 1;
  56. optional hadoop.common.TokenProto token = 2;
  57. }
  58. message AllocateResponseProto {
  59. optional AMCommandProto a_m_command = 1;
  60. optional int32 response_id = 2;
  61. repeated ContainerProto allocated_containers = 3;
  62. repeated ContainerStatusProto completed_container_statuses = 4;
  63. optional ResourceProto limit = 5;
  64. repeated NodeReportProto updated_nodes = 6;
  65. optional int32 num_cluster_nodes = 7;
  66. optional PreemptionMessageProto preempt = 8;
  67. repeated NMTokenProto nm_tokens = 9;
  68. }
  69. //////////////////////////////////////////////////////
  70. /////// client_RM_Protocol ///////////////////////////
  71. //////////////////////////////////////////////////////
  72. message GetNewApplicationRequestProto {
  73. }
  74. message GetNewApplicationResponseProto {
  75. optional ApplicationIdProto application_id = 1;
  76. optional ResourceProto maximumCapability = 2;
  77. }
  78. message GetApplicationReportRequestProto {
  79. optional ApplicationIdProto application_id = 1;
  80. }
  81. message GetApplicationReportResponseProto {
  82. optional ApplicationReportProto application_report = 1;
  83. }
  84. message SubmitApplicationRequestProto {
  85. optional ApplicationSubmissionContextProto application_submission_context= 1;
  86. }
  87. message SubmitApplicationResponseProto {
  88. }
  89. message KillApplicationRequestProto {
  90. optional ApplicationIdProto application_id = 1;
  91. }
  92. message KillApplicationResponseProto {
  93. }
  94. message GetClusterMetricsRequestProto {
  95. }
  96. message GetClusterMetricsResponseProto {
  97. optional YarnClusterMetricsProto cluster_metrics = 1;
  98. }
  99. message GetAllApplicationsRequestProto {
  100. }
  101. message GetAllApplicationsResponseProto {
  102. repeated ApplicationReportProto applications = 1;
  103. }
  104. message GetClusterNodesRequestProto {
  105. }
  106. message GetClusterNodesResponseProto {
  107. repeated NodeReportProto nodeReports = 1;
  108. }
  109. message GetQueueInfoRequestProto {
  110. optional string queueName = 1;
  111. optional bool includeApplications = 2;
  112. optional bool includeChildQueues = 3;
  113. optional bool recursive = 4;
  114. }
  115. message GetQueueInfoResponseProto {
  116. optional QueueInfoProto queueInfo = 1;
  117. }
  118. message GetQueueUserAclsInfoRequestProto {
  119. }
  120. message GetQueueUserAclsInfoResponseProto {
  121. repeated QueueUserACLInfoProto queueUserAcls = 1;
  122. }
  123. //////////////////////////////////////////////////////
  124. /////// client_NM_Protocol ///////////////////////////
  125. //////////////////////////////////////////////////////
  126. message StartContainerRequestProto {
  127. optional ContainerLaunchContextProto container_launch_context = 1;
  128. optional hadoop.common.TokenProto container_token = 2;
  129. }
  130. message StartContainerResponseProto {
  131. repeated StringBytesMapProto service_response = 1;
  132. }
  133. message StopContainerRequestProto {
  134. optional ContainerIdProto container_id = 1;
  135. }
  136. message StopContainerResponseProto {
  137. }
  138. message GetContainerStatusRequestProto {
  139. optional ContainerIdProto container_id = 1;
  140. }
  141. message GetContainerStatusResponseProto {
  142. optional ContainerStatusProto status = 1;
  143. }