1
0

yarn_service_protos.proto 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. }
  36. message FinishApplicationMasterRequestProto {
  37. optional ApplicationAttemptIdProto application_attempt_id = 1;
  38. optional string diagnostics = 2;
  39. optional string tracking_url = 3;
  40. optional FinalApplicationStatusProto final_application_status = 4;
  41. }
  42. message FinishApplicationMasterResponseProto {
  43. }
  44. message AllocateRequestProto {
  45. optional ApplicationAttemptIdProto application_attempt_id = 1;
  46. repeated ResourceRequestProto ask = 2;
  47. repeated ContainerIdProto release = 3;
  48. optional int32 response_id = 4;
  49. optional float progress = 5;
  50. }
  51. message AllocateResponseProto {
  52. optional AMResponseProto AM_response = 1;
  53. }
  54. //////////////////////////////////////////////////////
  55. /////// client_RM_Protocol ///////////////////////////
  56. //////////////////////////////////////////////////////
  57. message GetNewApplicationRequestProto {
  58. }
  59. message GetNewApplicationResponseProto {
  60. optional ApplicationIdProto application_id = 1;
  61. optional ResourceProto minimumCapability = 2;
  62. optional ResourceProto maximumCapability = 3;
  63. }
  64. message GetApplicationReportRequestProto {
  65. optional ApplicationIdProto application_id = 1;
  66. }
  67. message GetApplicationReportResponseProto {
  68. optional ApplicationReportProto application_report = 1;
  69. }
  70. message SubmitApplicationRequestProto {
  71. optional ApplicationSubmissionContextProto application_submission_context= 1;
  72. }
  73. message SubmitApplicationResponseProto {
  74. }
  75. message KillApplicationRequestProto {
  76. optional ApplicationIdProto application_id = 1;
  77. }
  78. message KillApplicationResponseProto {
  79. }
  80. message GetClusterMetricsRequestProto {
  81. }
  82. message GetClusterMetricsResponseProto {
  83. optional YarnClusterMetricsProto cluster_metrics = 1;
  84. }
  85. message GetAllApplicationsRequestProto {
  86. }
  87. message GetAllApplicationsResponseProto {
  88. repeated ApplicationReportProto applications = 1;
  89. }
  90. message GetClusterNodesRequestProto {
  91. }
  92. message GetClusterNodesResponseProto {
  93. repeated NodeReportProto nodeReports = 1;
  94. }
  95. message GetQueueInfoRequestProto {
  96. optional string queueName = 1;
  97. optional bool includeApplications = 2;
  98. optional bool includeChildQueues = 3;
  99. optional bool recursive = 4;
  100. }
  101. message GetQueueInfoResponseProto {
  102. optional QueueInfoProto queueInfo = 1;
  103. }
  104. message GetQueueUserAclsInfoRequestProto {
  105. }
  106. message GetQueueUserAclsInfoResponseProto {
  107. repeated QueueUserACLInfoProto queueUserAcls = 1;
  108. }
  109. //////////////////////////////////////////////////////
  110. /////// client_NM_Protocol ///////////////////////////
  111. //////////////////////////////////////////////////////
  112. message StartContainerRequestProto {
  113. optional ContainerLaunchContextProto container_launch_context = 1;
  114. }
  115. message StartContainerResponseProto {
  116. repeated StringBytesMapProto service_response = 1;
  117. }
  118. message StopContainerRequestProto {
  119. optional ContainerIdProto container_id = 1;
  120. }
  121. message StopContainerResponseProto {
  122. }
  123. message GetContainerStatusRequestProto {
  124. optional ContainerIdProto container_id = 1;
  125. }
  126. message GetContainerStatusResponseProto {
  127. optional ContainerStatusProto status = 1;
  128. }