yarn_service_protos.proto 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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 "yarn_protos.proto";
  23. //////////////////////////////////////////////////////
  24. /////// AM_RM_Protocol ///////////////////////////////
  25. //////////////////////////////////////////////////////
  26. message RegisterApplicationMasterRequestProto {
  27. optional ApplicationAttemptIdProto application_attempt_id = 1;
  28. optional string host = 2;
  29. optional int32 rpc_port = 3;
  30. optional string tracking_url = 4;
  31. }
  32. message RegisterApplicationMasterResponseProto {
  33. optional ResourceProto minimumCapability = 1;
  34. optional ResourceProto maximumCapability = 2;
  35. repeated ApplicationACLMapProto application_ACLs = 3;
  36. }
  37. message FinishApplicationMasterRequestProto {
  38. optional ApplicationAttemptIdProto application_attempt_id = 1;
  39. optional string diagnostics = 2;
  40. optional string tracking_url = 3;
  41. optional FinalApplicationStatusProto final_application_status = 4;
  42. }
  43. message FinishApplicationMasterResponseProto {
  44. }
  45. message AllocateRequestProto {
  46. optional ApplicationAttemptIdProto application_attempt_id = 1;
  47. repeated ResourceRequestProto ask = 2;
  48. repeated ContainerIdProto release = 3;
  49. optional int32 response_id = 4;
  50. optional float progress = 5;
  51. }
  52. message AllocateResponseProto {
  53. optional AMResponseProto AM_response = 1;
  54. optional int32 num_cluster_nodes = 2;
  55. }
  56. //////////////////////////////////////////////////////
  57. /////// client_RM_Protocol ///////////////////////////
  58. //////////////////////////////////////////////////////
  59. message GetNewApplicationRequestProto {
  60. }
  61. message GetNewApplicationResponseProto {
  62. optional ApplicationIdProto application_id = 1;
  63. optional ResourceProto minimumCapability = 2;
  64. optional ResourceProto maximumCapability = 3;
  65. }
  66. message GetApplicationReportRequestProto {
  67. optional ApplicationIdProto application_id = 1;
  68. }
  69. message GetApplicationReportResponseProto {
  70. optional ApplicationReportProto application_report = 1;
  71. }
  72. message SubmitApplicationRequestProto {
  73. optional ApplicationSubmissionContextProto application_submission_context= 1;
  74. }
  75. message SubmitApplicationResponseProto {
  76. }
  77. message KillApplicationRequestProto {
  78. optional ApplicationIdProto application_id = 1;
  79. }
  80. message KillApplicationResponseProto {
  81. }
  82. message GetClusterMetricsRequestProto {
  83. }
  84. message GetClusterMetricsResponseProto {
  85. optional YarnClusterMetricsProto cluster_metrics = 1;
  86. }
  87. message GetAllApplicationsRequestProto {
  88. }
  89. message GetAllApplicationsResponseProto {
  90. repeated ApplicationReportProto applications = 1;
  91. }
  92. message GetClusterNodesRequestProto {
  93. }
  94. message GetClusterNodesResponseProto {
  95. repeated NodeReportProto nodeReports = 1;
  96. }
  97. message GetQueueInfoRequestProto {
  98. optional string queueName = 1;
  99. optional bool includeApplications = 2;
  100. optional bool includeChildQueues = 3;
  101. optional bool recursive = 4;
  102. }
  103. message GetQueueInfoResponseProto {
  104. optional QueueInfoProto queueInfo = 1;
  105. }
  106. message GetQueueUserAclsInfoRequestProto {
  107. }
  108. message GetQueueUserAclsInfoResponseProto {
  109. repeated QueueUserACLInfoProto queueUserAcls = 1;
  110. }
  111. message GetDelegationTokenRequestProto {
  112. optional string renewer = 1;
  113. }
  114. message GetDelegationTokenResponseProto {
  115. optional DelegationTokenProto application_token = 1;
  116. }
  117. message RenewDelegationTokenRequestProto {
  118. required DelegationTokenProto delegation_token = 1;
  119. }
  120. message RenewDelegationTokenResponseProto {
  121. required int64 next_expiry_ts = 1;
  122. }
  123. message CancelDelegationTokenRequestProto {
  124. required DelegationTokenProto delegation_token = 1;
  125. }
  126. message CancelDelegationTokenResponseProto {
  127. }
  128. //////////////////////////////////////////////////////
  129. /////// client_NM_Protocol ///////////////////////////
  130. //////////////////////////////////////////////////////
  131. message StartContainerRequestProto {
  132. optional ContainerLaunchContextProto container_launch_context = 1;
  133. }
  134. message StartContainerResponseProto {
  135. repeated StringBytesMapProto service_response = 1;
  136. }
  137. message StopContainerRequestProto {
  138. optional ContainerIdProto container_id = 1;
  139. }
  140. message StopContainerResponseProto {
  141. }
  142. message GetContainerStatusRequestProto {
  143. optional ContainerIdProto container_id = 1;
  144. }
  145. message GetContainerStatusResponseProto {
  146. optional ContainerStatusProto status = 1;
  147. }