-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAPREDUCE-7435. Manifest Committer OOM on abfs (#5519)
This modifies the manifest committer so that the list of files to rename is passed between stages as a file of writeable entries on the local filesystem. The map of directories to create is still passed in memory; this map is built across all tasks, so even if many tasks created files, if they all write into the same set of directories the memory needed is O(directories) with the task count not a factor. The _SUCCESS file reports on heap size through gauges. This should give a warning if there are problems. Contributed by Steve Loughran
- Loading branch information
1 parent
9c98951
commit 7a45ef4
Showing
39 changed files
with
2,581 additions
and
492 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
...ject/hadoop-common/src/main/java/org/apache/hadoop/fs/statistics/IOStatisticsSetters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.hadoop.fs.statistics; | ||
|
||
import org.apache.hadoop.classification.InterfaceAudience; | ||
import org.apache.hadoop.classification.InterfaceStability; | ||
|
||
/** | ||
* Setter for IOStatistics entries. | ||
* These operations have been in the read/write API | ||
* {@code IOStatisticsStore} since IOStatistics | ||
* was added; extracting into its own interface allows for | ||
* {@link IOStatisticsSnapshot} to also support it. | ||
* These are the simple setters, they don't provide for increments, | ||
* decrements, calculation of min/max/mean etc. | ||
* @since The interface and IOStatisticsSnapshot support was added <i>after</i> Hadoop 3.3.5 | ||
*/ | ||
@InterfaceAudience.Public | ||
@InterfaceStability.Evolving | ||
public interface IOStatisticsSetters extends IOStatistics { | ||
|
||
/** | ||
* Set a counter. | ||
* | ||
* No-op if the counter is unknown. | ||
* @param key statistics key | ||
* @param value value to set | ||
*/ | ||
void setCounter(String key, long value); | ||
|
||
/** | ||
* Set a gauge. | ||
* | ||
* @param key statistics key | ||
* @param value value to set | ||
*/ | ||
void setGauge(String key, long value); | ||
|
||
/** | ||
* Set a maximum. | ||
* @param key statistics key | ||
* @param value value to set | ||
*/ | ||
void setMaximum(String key, long value); | ||
|
||
/** | ||
* Set a minimum. | ||
* @param key statistics key | ||
* @param value value to set | ||
*/ | ||
void setMinimum(String key, long value); | ||
|
||
/** | ||
* Set a mean statistic to a given value. | ||
* @param key statistic key | ||
* @param value new value. | ||
*/ | ||
void setMeanStatistic(String key, MeanStatistic value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.