yarn_protos.proto 19 KB

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