mr_service_protos.proto 2.8 KB

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