mr_service_protos.proto 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 "Security.proto";
  23. import "mr_protos.proto";
  24. import "yarn_protos.proto";
  25. message GetJobReportRequestProto {
  26. optional JobIdProto job_id = 1;
  27. }
  28. message GetJobReportResponseProto {
  29. optional JobReportProto job_report = 1;
  30. }
  31. message GetTaskReportRequestProto {
  32. optional TaskIdProto task_id = 1;
  33. }
  34. message GetTaskReportResponseProto {
  35. optional TaskReportProto task_report = 1;
  36. }
  37. message GetTaskAttemptReportRequestProto {
  38. optional TaskAttemptIdProto task_attempt_id = 1;
  39. }
  40. message GetTaskAttemptReportResponseProto {
  41. optional TaskAttemptReportProto task_attempt_report = 1;
  42. }
  43. message GetCountersRequestProto {
  44. optional JobIdProto job_id = 1;
  45. }
  46. message GetCountersResponseProto {
  47. optional CountersProto counters = 1;
  48. }
  49. message GetTaskAttemptCompletionEventsRequestProto {
  50. optional JobIdProto job_id = 1;
  51. optional int32 from_event_id = 2;
  52. optional int32 max_events = 3;
  53. }
  54. message GetTaskAttemptCompletionEventsResponseProto {
  55. repeated TaskAttemptCompletionEventProto completion_events = 1;
  56. }
  57. message GetTaskReportsRequestProto {
  58. optional JobIdProto job_id = 1;
  59. optional TaskTypeProto task_type = 2;
  60. }
  61. message GetTaskReportsResponseProto {
  62. repeated TaskReportProto task_reports = 1;
  63. }
  64. message GetDiagnosticsRequestProto {
  65. optional TaskAttemptIdProto task_attempt_id = 1;
  66. }
  67. message GetDiagnosticsResponseProto {
  68. repeated string diagnostics = 1;
  69. }
  70. message KillJobRequestProto {
  71. optional JobIdProto job_id = 1;
  72. }
  73. message KillJobResponseProto {
  74. }
  75. message KillTaskRequestProto {
  76. optional TaskIdProto task_id = 1;
  77. }
  78. message KillTaskResponseProto {
  79. }
  80. message KillTaskAttemptRequestProto {
  81. optional TaskAttemptIdProto task_attempt_id = 1;
  82. }
  83. message KillTaskAttemptResponseProto {
  84. }
  85. message FailTaskAttemptRequestProto {
  86. optional TaskAttemptIdProto task_attempt_id = 1;
  87. }
  88. message FailTaskAttemptResponseProto {
  89. }