yarn_protos.proto 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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. /**
  19. * These .proto interfaces are public and stable.
  20. * Please see http://wiki.apache.org/hadoop/Compatibility
  21. * for what changes are allowed for a *stable* .proto interface.
  22. */
  23. option java_package = "org.apache.hadoop.yarn.proto";
  24. option java_outer_classname = "YarnProtos";
  25. option java_generic_services = true;
  26. option java_generate_equals_and_hash = true;
  27. package hadoop.yarn;
  28. import "Security.proto";
  29. message SerializedExceptionProto {
  30. optional string message = 1;
  31. optional string trace = 2;
  32. optional string class_name = 3;
  33. optional SerializedExceptionProto cause = 4;
  34. }
  35. message ApplicationIdProto {
  36. optional int32 id = 1;
  37. optional int64 cluster_timestamp = 2;
  38. }
  39. message ApplicationAttemptIdProto {
  40. optional ApplicationIdProto application_id = 1;
  41. optional int32 attemptId = 2;
  42. }
  43. message ContainerIdProto {
  44. optional ApplicationIdProto app_id = 1;
  45. optional ApplicationAttemptIdProto app_attempt_id = 2;
  46. optional int64 id = 3;
  47. }
  48. enum ResourceTypesProto {
  49. COUNTABLE = 0;
  50. }
  51. message ResourceInformationProto {
  52. required string key = 1;
  53. optional int64 value = 2;
  54. optional string units = 3;
  55. optional ResourceTypesProto type = 4;
  56. }
  57. message ResourceProto {
  58. optional int64 memory = 1;
  59. optional int32 virtual_cores = 2;
  60. repeated ResourceInformationProto resource_value_map = 3;
  61. }
  62. message ResourceUtilizationProto {
  63. optional int32 pmem = 1;
  64. optional int32 vmem = 2;
  65. optional float cpu = 3;
  66. }
  67. message ResourceOptionProto {
  68. optional ResourceProto resource = 1;
  69. optional int32 over_commit_timeout = 2;
  70. }
  71. message ResourceProfileEntry {
  72. required string name = 1;
  73. required ResourceProto resources = 2;
  74. }
  75. message ResourceProfilesProto {
  76. repeated ResourceProfileEntry resource_profiles_map = 1;
  77. }
  78. message NodeResourceMapProto {
  79. optional NodeIdProto node_id = 1;
  80. optional ResourceOptionProto resource_option = 2;
  81. }
  82. message PriorityProto {
  83. optional int32 priority = 1;
  84. }
  85. enum ContainerStateProto {
  86. C_NEW = 1;
  87. C_RUNNING = 2;
  88. C_COMPLETE = 3;
  89. C_SCHEDULED = 4;
  90. }
  91. message ContainerProto {
  92. optional ContainerIdProto id = 1;
  93. optional NodeIdProto nodeId = 2;
  94. optional string node_http_address = 3;
  95. optional ResourceProto resource = 4;
  96. optional PriorityProto priority = 5;
  97. optional hadoop.common.TokenProto container_token = 6;
  98. optional ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
  99. optional int64 allocation_request_id = 8 [default = -1];
  100. optional int32 version = 9 [default = 0];
  101. }
  102. message ContainerReportProto {
  103. optional ContainerIdProto container_id = 1;
  104. optional ResourceProto resource = 2;
  105. optional NodeIdProto node_id = 3;
  106. optional PriorityProto priority = 4;
  107. optional int64 creation_time = 5;
  108. optional int64 finish_time = 6;
  109. optional string diagnostics_info = 7 [default = "N/A"];
  110. optional string log_url = 8;
  111. optional int32 container_exit_status = 9;
  112. optional ContainerStateProto container_state = 10;
  113. optional string node_http_address = 11;
  114. }
  115. enum YarnApplicationStateProto {
  116. NEW = 1;
  117. NEW_SAVING = 2;
  118. SUBMITTED = 3;
  119. ACCEPTED = 4;
  120. RUNNING = 5;
  121. FINISHED = 6;
  122. FAILED = 7;
  123. KILLED = 8;
  124. }
  125. enum YarnApplicationAttemptStateProto {
  126. APP_ATTEMPT_NEW = 1;
  127. APP_ATTEMPT_SUBMITTED = 2;
  128. APP_ATTEMPT_SCHEDULED = 3;
  129. APP_ATTEMPT_ALLOCATED_SAVING = 4;
  130. APP_ATTEMPT_ALLOCATED = 5;
  131. APP_ATTEMPT_LAUNCHED = 6;
  132. APP_ATTEMPT_FAILED = 7;
  133. APP_ATTEMPT_RUNNING = 8;
  134. APP_ATTEMPT_FINISHING = 9;
  135. APP_ATTEMPT_FINISHED = 10;
  136. APP_ATTEMPT_KILLED = 11;
  137. }
  138. enum FinalApplicationStatusProto {
  139. APP_UNDEFINED = 0;
  140. APP_SUCCEEDED = 1;
  141. APP_FAILED = 2;
  142. APP_KILLED = 3;
  143. APP_ENDED = 4;
  144. }
  145. message URLProto {
  146. optional string scheme = 1;
  147. optional string host = 2;
  148. optional int32 port = 3;
  149. optional string file = 4;
  150. optional string userInfo = 5;
  151. }
  152. enum LocalResourceVisibilityProto {
  153. PUBLIC = 1;
  154. PRIVATE = 2;
  155. APPLICATION = 3;
  156. }
  157. enum LocalResourceTypeProto {
  158. ARCHIVE = 1;
  159. FILE = 2;
  160. PATTERN = 3;
  161. }
  162. message LocalResourceProto {
  163. optional URLProto resource = 1;
  164. optional int64 size = 2;
  165. optional int64 timestamp = 3;
  166. optional LocalResourceTypeProto type = 4;
  167. optional LocalResourceVisibilityProto visibility = 5;
  168. optional string pattern = 6;
  169. optional bool should_be_uploaded_to_shared_cache = 7;
  170. }
  171. message StringLongMapProto {
  172. required string key = 1;
  173. required int64 value = 2;
  174. }
  175. message ApplicationResourceUsageReportProto {
  176. optional int32 num_used_containers = 1;
  177. optional int32 num_reserved_containers = 2;
  178. optional ResourceProto used_resources = 3;
  179. optional ResourceProto reserved_resources = 4;
  180. optional ResourceProto needed_resources = 5;
  181. optional int64 memory_seconds = 6;
  182. optional int64 vcore_seconds = 7;
  183. optional float queue_usage_percentage = 8;
  184. optional float cluster_usage_percentage = 9;
  185. optional int64 preempted_memory_seconds = 10;
  186. optional int64 preempted_vcore_seconds = 11;
  187. repeated StringLongMapProto application_resource_usage_map = 12;
  188. repeated StringLongMapProto application_preempted_resource_usage_map = 13;
  189. }
  190. message ApplicationReportProto {
  191. optional ApplicationIdProto applicationId = 1;
  192. optional string user = 2;
  193. optional string queue = 3;
  194. optional string name = 4;
  195. optional string host = 5;
  196. optional int32 rpc_port = 6;
  197. optional hadoop.common.TokenProto client_to_am_token = 7;
  198. optional YarnApplicationStateProto yarn_application_state = 8;
  199. optional string trackingUrl = 9;
  200. optional string diagnostics = 10 [default = "N/A"];
  201. optional int64 startTime = 11;
  202. optional int64 finishTime = 12;
  203. optional FinalApplicationStatusProto final_application_status = 13;
  204. optional ApplicationResourceUsageReportProto app_resource_Usage = 14;
  205. optional string originalTrackingUrl = 15;
  206. optional ApplicationAttemptIdProto currentApplicationAttemptId = 16;
  207. optional float progress = 17;
  208. optional string applicationType = 18;
  209. optional hadoop.common.TokenProto am_rm_token = 19;
  210. repeated string applicationTags = 20;
  211. optional LogAggregationStatusProto log_aggregation_status = 21;
  212. optional bool unmanaged_application = 22 [default = false];
  213. optional PriorityProto priority = 23;
  214. optional string appNodeLabelExpression = 24;
  215. optional string amNodeLabelExpression = 25;
  216. repeated AppTimeoutsMapProto appTimeouts = 26;
  217. }
  218. message AppTimeoutsMapProto {
  219. optional ApplicationTimeoutTypeProto application_timeout_type = 1;
  220. optional ApplicationTimeoutProto application_timeout = 2;
  221. }
  222. message ApplicationTimeoutProto {
  223. required ApplicationTimeoutTypeProto application_timeout_type = 1;
  224. optional string expire_time = 2;
  225. optional int64 remaining_time = 3;
  226. }
  227. enum LogAggregationStatusProto {
  228. LOG_DISABLED = 1;
  229. LOG_NOT_START = 2;
  230. LOG_RUNNING = 3;
  231. LOG_SUCCEEDED = 4;
  232. LOG_FAILED = 5;
  233. LOG_TIME_OUT = 6;
  234. LOG_RUNNING_WITH_FAILURE = 7;
  235. }
  236. message ApplicationAttemptReportProto {
  237. optional ApplicationAttemptIdProto application_attempt_id = 1;
  238. optional string host = 2;
  239. optional int32 rpc_port = 3;
  240. optional string tracking_url = 4;
  241. optional string diagnostics = 5 [default = "N/A"];
  242. optional YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
  243. optional ContainerIdProto am_container_id = 7;
  244. optional string original_tracking_url = 8;
  245. optional int64 startTime = 9;
  246. optional int64 finishTime = 10;
  247. }
  248. enum NodeStateProto {
  249. NS_NEW = 1;
  250. NS_RUNNING = 2;
  251. NS_UNHEALTHY = 3;
  252. NS_DECOMMISSIONED = 4;
  253. NS_LOST = 5;
  254. NS_REBOOTED = 6;
  255. NS_DECOMMISSIONING = 7;
  256. NS_SHUTDOWN = 8;
  257. }
  258. message NodeIdProto {
  259. optional string host = 1;
  260. optional int32 port = 2;
  261. }
  262. message NodeReportProto {
  263. optional NodeIdProto nodeId = 1;
  264. optional string httpAddress = 2;
  265. optional string rackName = 3;
  266. optional ResourceProto used = 4;
  267. optional ResourceProto capability = 5;
  268. optional int32 numContainers = 6;
  269. optional NodeStateProto node_state = 7;
  270. optional string health_report = 8;
  271. optional int64 last_health_report_time = 9;
  272. repeated string node_labels = 10;
  273. optional ResourceUtilizationProto containers_utilization = 11;
  274. optional ResourceUtilizationProto node_utilization = 12;
  275. }
  276. message NodeIdToLabelsProto {
  277. optional NodeIdProto nodeId = 1;
  278. repeated string nodeLabels = 2;
  279. }
  280. message LabelsToNodeIdsProto {
  281. optional string nodeLabels = 1;
  282. repeated NodeIdProto nodeId = 2;
  283. }
  284. message NodeLabelProto {
  285. optional string name = 1;
  286. optional bool isExclusive = 2 [default = true];
  287. }
  288. enum ContainerTypeProto {
  289. APPLICATION_MASTER = 1;
  290. TASK = 2;
  291. }
  292. enum ExecutionTypeProto {
  293. GUARANTEED = 1;
  294. OPPORTUNISTIC = 2;
  295. }
  296. ////////////////////////////////////////////////////////////////////////
  297. ////// From AM_RM_Protocol /////////////////////////////////////////////
  298. ////////////////////////////////////////////////////////////////////////
  299. message ProfileCapabilityProto {
  300. required string profile = 1;
  301. required ResourceProto profileCapabilityOverride = 2;
  302. }
  303. message ResourceRequestProto {
  304. optional PriorityProto priority = 1;
  305. optional string resource_name = 2;
  306. optional ResourceProto capability = 3;
  307. optional int32 num_containers = 4;
  308. optional bool relax_locality = 5 [default = true];
  309. optional string node_label_expression = 6;
  310. optional ExecutionTypeRequestProto execution_type_request = 7;
  311. optional int64 allocation_request_id = 8 [default = 0];
  312. optional ProfileCapabilityProto profile = 9;
  313. }
  314. message ExecutionTypeRequestProto {
  315. optional ExecutionTypeProto execution_type = 1 [default = GUARANTEED];
  316. optional bool enforce_execution_type = 2 [default = false];
  317. }
  318. enum AMCommandProto {
  319. AM_RESYNC = 1;
  320. AM_SHUTDOWN = 2;
  321. }
  322. message PreemptionMessageProto {
  323. optional StrictPreemptionContractProto strictContract = 1;
  324. optional PreemptionContractProto contract = 2;
  325. }
  326. message StrictPreemptionContractProto {
  327. repeated PreemptionContainerProto container = 1;
  328. }
  329. message PreemptionContractProto {
  330. repeated PreemptionResourceRequestProto resource = 1;
  331. repeated PreemptionContainerProto container = 2;
  332. }
  333. message PreemptionContainerProto {
  334. optional ContainerIdProto id = 1;
  335. }
  336. message PreemptionResourceRequestProto {
  337. optional ResourceRequestProto resource = 1;
  338. }
  339. message ResourceBlacklistRequestProto {
  340. repeated string blacklist_additions = 1;
  341. repeated string blacklist_removals = 2;
  342. }
  343. ////////////////////////////////////////////////////////////////////////
  344. ////// From client_RM_Protocol /////////////////////////////////////////
  345. ////////////////////////////////////////////////////////////////////////
  346. message ApplicationSubmissionContextProto {
  347. optional ApplicationIdProto application_id = 1;
  348. optional string application_name = 2 [default = "N/A"];
  349. optional string queue = 3 [default = "default"];
  350. optional PriorityProto priority = 4;
  351. optional ContainerLaunchContextProto am_container_spec = 5;
  352. optional bool cancel_tokens_when_complete = 6 [default = true];
  353. optional bool unmanaged_am = 7 [default = false];
  354. optional int32 maxAppAttempts = 8 [default = 0];
  355. optional ResourceProto resource = 9;
  356. optional string applicationType = 10 [default = "YARN"];
  357. optional bool keep_containers_across_application_attempts = 11 [default = false];
  358. repeated string applicationTags = 12;
  359. optional int64 attempt_failures_validity_interval = 13 [default = -1];
  360. optional LogAggregationContextProto log_aggregation_context = 14;
  361. optional ReservationIdProto reservation_id = 15;
  362. optional string node_label_expression = 16;
  363. repeated ResourceRequestProto am_container_resource_request = 17;
  364. repeated ApplicationTimeoutMapProto application_timeouts = 18;
  365. }
  366. enum ApplicationTimeoutTypeProto {
  367. APP_TIMEOUT_LIFETIME = 1;
  368. }
  369. message ApplicationTimeoutMapProto {
  370. optional ApplicationTimeoutTypeProto application_timeout_type = 1;
  371. optional int64 timeout = 2;
  372. }
  373. message ApplicationUpdateTimeoutMapProto {
  374. optional ApplicationTimeoutTypeProto application_timeout_type = 1;
  375. optional string expire_time = 2;
  376. }
  377. message LogAggregationContextProto {
  378. optional string include_pattern = 1 [default = ".*"];
  379. optional string exclude_pattern = 2 [default = ""];
  380. optional string rolled_logs_include_pattern = 3 [default = ""];
  381. optional string rolled_logs_exclude_pattern = 4 [default = ".*"];
  382. optional string log_aggregation_policy_class_name = 5;
  383. optional string log_aggregation_policy_parameters = 6;
  384. }
  385. enum ApplicationAccessTypeProto {
  386. APPACCESS_VIEW_APP = 1;
  387. APPACCESS_MODIFY_APP = 2;
  388. }
  389. message ApplicationACLMapProto {
  390. optional ApplicationAccessTypeProto accessType = 1;
  391. optional string acl = 2 [default = " "];
  392. }
  393. message YarnClusterMetricsProto {
  394. optional int32 num_node_managers = 1;
  395. optional int32 num_decommissioned_nms = 2;
  396. optional int32 num_active_nms = 3;
  397. optional int32 num_lost_nms = 4;
  398. optional int32 num_unhealthy_nms = 5;
  399. optional int32 num_rebooted_nms = 6;
  400. }
  401. enum QueueStateProto {
  402. Q_STOPPED = 1;
  403. Q_RUNNING = 2;
  404. Q_DRAINING = 3;
  405. }
  406. message QueueStatisticsProto {
  407. optional int64 numAppsSubmitted = 1;
  408. optional int64 numAppsRunning = 2;
  409. optional int64 numAppsPending = 3;
  410. optional int64 numAppsCompleted = 4;
  411. optional int64 numAppsKilled = 5;
  412. optional int64 numAppsFailed = 6;
  413. optional int64 numActiveUsers = 7;
  414. optional int64 availableMemoryMB = 8;
  415. optional int64 allocatedMemoryMB = 9;
  416. optional int64 pendingMemoryMB = 10;
  417. optional int64 reservedMemoryMB = 11;
  418. optional int64 availableVCores = 12;
  419. optional int64 allocatedVCores = 13;
  420. optional int64 pendingVCores = 14;
  421. optional int64 reservedVCores = 15;
  422. optional int64 allocatedContainers = 16;
  423. optional int64 pendingContainers = 17;
  424. optional int64 reservedContainers = 18;
  425. }
  426. message QueueInfoProto {
  427. optional string queueName = 1;
  428. optional float capacity = 2;
  429. optional float maximumCapacity = 3;
  430. optional float currentCapacity = 4;
  431. optional QueueStateProto state = 5;
  432. repeated QueueInfoProto childQueues = 6;
  433. repeated ApplicationReportProto applications = 7;
  434. repeated string accessibleNodeLabels = 8;
  435. optional string defaultNodeLabelExpression = 9;
  436. optional QueueStatisticsProto queueStatistics = 10;
  437. optional bool preemptionDisabled = 11;
  438. repeated QueueConfigurationsMapProto queueConfigurationsMap = 12;
  439. }
  440. message QueueConfigurationsProto {
  441. optional float capacity = 1;
  442. optional float absoluteCapacity = 2;
  443. optional float maxCapacity = 3;
  444. optional float absoluteMaxCapacity = 4;
  445. optional float maxAMPercentage = 5;
  446. }
  447. message QueueConfigurationsMapProto {
  448. required string partitionName = 1;
  449. optional QueueConfigurationsProto queueConfigurations = 2;
  450. }
  451. enum QueueACLProto {
  452. QACL_SUBMIT_APPLICATIONS = 1;
  453. QACL_ADMINISTER_QUEUE = 2;
  454. }
  455. message QueueUserACLInfoProto {
  456. optional string queueName = 1;
  457. repeated QueueACLProto userAcls = 2;
  458. }
  459. enum SignalContainerCommandProto {
  460. OUTPUT_THREAD_DUMP = 1;
  461. GRACEFUL_SHUTDOWN = 2;
  462. FORCEFUL_SHUTDOWN = 3;
  463. }
  464. ////////////////////////////////////////////////////////////////////////
  465. ////// From reservation_protocol /////////////////////////////////////
  466. ////////////////////////////////////////////////////////////////////////
  467. message ReservationIdProto {
  468. optional int64 id = 1;
  469. optional int64 cluster_timestamp = 2;
  470. }
  471. message ReservationRequestProto {
  472. optional ResourceProto capability = 1;
  473. optional int32 num_containers = 2 [default = 1];
  474. optional int32 concurrency = 3 [default = 1];
  475. optional int64 duration = 4 [default = -1];
  476. }
  477. message ReservationRequestsProto {
  478. repeated ReservationRequestProto reservation_resources = 1;
  479. optional ReservationRequestInterpreterProto interpreter = 2 [default = R_ALL];
  480. }
  481. message ReservationDefinitionProto {
  482. optional ReservationRequestsProto reservation_requests = 1;
  483. optional int64 arrival = 2;
  484. optional int64 deadline = 3;
  485. optional string reservation_name = 4;
  486. optional string recurrence_expression = 5 [default = "0"];
  487. optional PriorityProto priority = 6;
  488. }
  489. message ResourceAllocationRequestProto {
  490. optional int64 start_time = 1;
  491. optional int64 end_time = 2;
  492. optional ResourceProto resource = 3;
  493. }
  494. message ReservationAllocationStateProto {
  495. optional ReservationDefinitionProto reservation_definition = 1;
  496. repeated ResourceAllocationRequestProto allocation_requests = 2;
  497. optional int64 start_time = 3;
  498. optional int64 end_time = 4;
  499. optional string user = 5;
  500. optional bool contains_gangs = 6;
  501. optional int64 acceptance_time = 7;
  502. optional ReservationIdProto reservation_id = 8;
  503. }
  504. enum ReservationRequestInterpreterProto {
  505. R_ANY = 0;
  506. R_ALL = 1;
  507. R_ORDER = 2;
  508. R_ORDER_NO_GAP = 3;
  509. }
  510. ////////////////////////////////////////////////////////////////////////
  511. ////// From container_manager //////////////////////////////////////////
  512. ////////////////////////////////////////////////////////////////////////
  513. message ContainerLaunchContextProto {
  514. repeated StringLocalResourceMapProto localResources = 1;
  515. optional bytes tokens = 2;
  516. repeated StringBytesMapProto service_data = 3;
  517. repeated StringStringMapProto environment = 4;
  518. repeated string command = 5;
  519. repeated ApplicationACLMapProto application_ACLs = 6;
  520. optional ContainerRetryContextProto container_retry_context = 7;
  521. optional bytes tokens_conf = 8;
  522. }
  523. message ContainerStatusProto {
  524. optional ContainerIdProto container_id = 1;
  525. optional ContainerStateProto state = 2;
  526. optional string diagnostics = 3 [default = "N/A"];
  527. optional int32 exit_status = 4 [default = -1000];
  528. optional ResourceProto capability = 5;
  529. optional ExecutionTypeProto executionType = 6 [default = GUARANTEED];
  530. repeated StringStringMapProto container_attributes = 7;
  531. }
  532. enum ContainerExitStatusProto {
  533. SUCCESS = 0;
  534. INVALID = -1000;
  535. ABORTED = -100;
  536. DISKS_FAILED = -101;
  537. }
  538. message ContainerRetryContextProto {
  539. optional ContainerRetryPolicyProto retry_policy = 1 [default = NEVER_RETRY];
  540. repeated int32 error_codes = 2;
  541. optional int32 max_retries = 3 [default = 0];
  542. optional int32 retry_interval = 4 [default = 0];
  543. }
  544. enum ContainerRetryPolicyProto {
  545. NEVER_RETRY = 0;
  546. RETRY_ON_ALL_ERRORS = 1;
  547. RETRY_ON_SPECIFIC_ERROR_CODES = 2;
  548. }
  549. ////////////////////////////////////////////////////////////////////////
  550. ////// From common//////////////////////////////////////////////////////
  551. ////////////////////////////////////////////////////////////////////////
  552. message StringLocalResourceMapProto {
  553. optional string key = 1;
  554. optional LocalResourceProto value = 2;
  555. }
  556. message StringStringMapProto {
  557. optional string key = 1;
  558. optional string value = 2;
  559. }
  560. message StringBytesMapProto {
  561. optional string key = 1;
  562. optional bytes value = 2;
  563. }
  564. message CollectorInfoProto {
  565. optional string collector_addr = 1;
  566. optional hadoop.common.TokenProto collector_token = 2;
  567. }