mr_service_protos.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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.mapreduce.v2.proto";
  19. option java_outer_classname = "MRServiceProtos";
  20. option java_generic_services = true;
  21. option java_generate_equals_and_hash = true;
  22. import "mr_protos.proto";
  23. import "yarn_protos.proto";
  24. message GetJobReportRequestProto {
  25. optional JobIdProto job_id = 1;
  26. }
  27. message GetJobReportResponseProto {
  28. optional JobReportProto job_report = 1;
  29. }
  30. message GetTaskReportRequestProto {
  31. optional TaskIdProto task_id = 1;
  32. }
  33. message GetTaskReportResponseProto {
  34. optional TaskReportProto task_report = 1;
  35. }
  36. message GetTaskAttemptReportRequestProto {
  37. optional TaskAttemptIdProto task_attempt_id = 1;
  38. }
  39. message GetTaskAttemptReportResponseProto {
  40. optional TaskAttemptReportProto task_attempt_report = 1;
  41. }
  42. message GetCountersRequestProto {
  43. optional JobIdProto job_id = 1;
  44. }
  45. message GetCountersResponseProto {
  46. optional CountersProto counters = 1;
  47. }
  48. message GetTaskAttemptCompletionEventsRequestProto {
  49. optional JobIdProto job_id = 1;
  50. optional int32 from_event_id = 2;
  51. optional int32 max_events = 3;
  52. }
  53. message GetTaskAttemptCompletionEventsResponseProto {
  54. repeated TaskAttemptCompletionEventProto completion_events = 1;
  55. }
  56. message GetTaskReportsRequestProto {
  57. optional JobIdProto job_id = 1;
  58. optional TaskTypeProto task_type = 2;
  59. }
  60. message GetTaskReportsResponseProto {
  61. repeated TaskReportProto task_reports = 1;
  62. }
  63. message GetDiagnosticsRequestProto {
  64. optional TaskAttemptIdProto task_attempt_id = 1;
  65. }
  66. message GetDiagnosticsResponseProto {
  67. repeated string diagnostics = 1;
  68. }
  69. message GetDelegationTokenRequestProto {
  70. optional string renewer = 1;
  71. }
  72. message GetDelegationTokenResponseProto {
  73. optional DelegationTokenProto m_r_delegation_token = 1;
  74. }
  75. message KillJobRequestProto {
  76. optional JobIdProto job_id = 1;
  77. }
  78. message KillJobResponseProto {
  79. }
  80. message KillTaskRequestProto {
  81. optional TaskIdProto task_id = 1;
  82. }
  83. message KillTaskResponseProto {
  84. }
  85. message KillTaskAttemptRequestProto {
  86. optional TaskAttemptIdProto task_attempt_id = 1;
  87. }
  88. message KillTaskAttemptResponseProto {
  89. }
  90. message FailTaskAttemptRequestProto {
  91. optional TaskAttemptIdProto task_attempt_id = 1;
  92. }
  93. message FailTaskAttemptResponseProto {
  94. }
  95. message RenewDelegationTokenRequestProto {
  96. required DelegationTokenProto delegation_token = 1;
  97. }
  98. message RenewDelegationTokenResponseProto {
  99. required int64 next_expiry_ts = 1;
  100. }
  101. message CancelDelegationTokenRequestProto {
  102. required DelegationTokenProto delegation_token = 1;
  103. }
  104. message CancelDelegationTokenResponseProto {
  105. }