-
-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Writers and Committers, HadoopMapReduceCommitProtocol and FileCommitP…
…rotocol
- Loading branch information
1 parent
4b1a77f
commit 6b94a95
Showing
5 changed files
with
96 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
# HadoopMapRedWriteConfigUtil | ||
|
||
`HadoopMapRedWriteConfigUtil` is...FIXME | ||
`HadoopMapRedWriteConfigUtil` is a [HadoopWriteConfigUtil](HadoopWriteConfigUtil.md) for [RDD.saveAsHadoopDataset](rdd/PairRDDFunctions.md#saveAsHadoopDataset) operator. | ||
|
||
== [[createCommitter]] `createCommitter` Method | ||
## Creating Instance | ||
|
||
[source, scala] | ||
---- | ||
createCommitter( | ||
jobId: Int): HadoopMapReduceCommitProtocol | ||
---- | ||
`HadoopMapRedWriteConfigUtil` takes the following to be created: | ||
|
||
NOTE: `createCommitter` is part of the <<spark-internal-io-HadoopWriteConfigUtil.md#createCommitter, HadoopWriteConfigUtil>> contract to...FIXME. | ||
* <span id="conf"> `SerializableJobConf` | ||
|
||
`createCommitter`...FIXME | ||
`HadoopMapRedWriteConfigUtil` is created when: | ||
|
||
* `PairRDDFunctions` is requested to [saveAsHadoopDataset](rdd/PairRDDFunctions.md#saveAsHadoopDataset) | ||
|
||
## Logging | ||
|
||
Enable `ALL` logging level for `org.apache.spark.internal.io.HadoopMapRedWriteConfigUtil` logger to see what happens inside. | ||
|
||
Add the following line to `conf/log4j2.properties`: | ||
|
||
```text | ||
logger.HadoopMapRedWriteConfigUtil.name = org.apache.spark.internal.io.HadoopMapRedWriteConfigUtil | ||
logger.HadoopMapRedWriteConfigUtil.level = all | ||
``` | ||
|
||
Refer to [Logging](spark-logging.md). |
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 |
---|---|---|
@@ -1,3 +1,32 @@ | ||
# HadoopMapReduceCommitProtocol | ||
|
||
`HadoopMapReduceCommitProtocol` is...FIXME | ||
`HadoopMapReduceCommitProtocol` is a [FileCommitProtocol](FileCommitProtocol.md). | ||
|
||
`HadoopMapReduceCommitProtocol` is a `Serializable` ([Java]({{ java.api }}/java/io/Serializable.html)) (to be sent out in tasks over the wire to executors). | ||
|
||
## Creating Instance | ||
|
||
`HadoopMapReduceCommitProtocol` takes the following to be created: | ||
|
||
* <span id="jobId"> Job ID | ||
* <span id="path"> Path | ||
* <span id="dynamicPartitionOverwrite"> `dynamicPartitionOverwrite` flag (default: `false`) | ||
|
||
`HadoopMapReduceCommitProtocol` is created when: | ||
|
||
* `HadoopWriteConfigUtil` is requested to [create a committer](HadoopWriteConfigUtil.md#createCommitter) | ||
* `HadoopMapReduceWriteConfigUtil` is requested to [create a committer](HadoopMapReduceWriteConfigUtil.md#createCommitter) | ||
* `HadoopMapRedWriteConfigUtil` is requested to [create a committer](HadoopMapRedWriteConfigUtil.md#createCommitter) | ||
|
||
## Logging | ||
|
||
Enable `ALL` logging level for `org.apache.spark.internal.io.HadoopMapReduceCommitProtocol` logger to see what happens inside. | ||
|
||
Add the following line to `conf/log4j2.properties`: | ||
|
||
```text | ||
logger.HadoopMapReduceCommitProtocol.name = org.apache.spark.internal.io.HadoopMapReduceCommitProtocol | ||
logger.HadoopMapReduceCommitProtocol.level = all | ||
``` | ||
|
||
Refer to [Logging](spark-logging.md). |
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 |
---|---|---|
@@ -1,15 +1,26 @@ | ||
# HadoopMapReduceWriteConfigUtil | ||
|
||
`HadoopMapReduceWriteConfigUtil` is...FIXME | ||
`HadoopMapReduceWriteConfigUtil` is a [HadoopWriteConfigUtil](HadoopWriteConfigUtil.md) for [RDD.saveAsNewAPIHadoopDataset](rdd/PairRDDFunctions.md#saveAsNewAPIHadoopDataset) operator. | ||
|
||
== [[createCommitter]] `createCommitter` Method | ||
## Creating Instance | ||
|
||
[source, scala] | ||
---- | ||
createCommitter( | ||
jobId: Int): HadoopMapReduceCommitProtocol | ||
---- | ||
`HadoopMapReduceWriteConfigUtil` takes the following to be created: | ||
|
||
NOTE: `createCommitter` is part of the <<spark-internal-io-HadoopWriteConfigUtil.md#createCommitter, HadoopWriteConfigUtil>> contract to...FIXME. | ||
* <span id="conf"> `SerializableConfiguration` | ||
|
||
`createCommitter`...FIXME | ||
`HadoopMapReduceWriteConfigUtil` is created when: | ||
|
||
* `PairRDDFunctions` is requested to [saveAsNewAPIHadoopDataset](rdd/PairRDDFunctions.md#saveAsNewAPIHadoopDataset) | ||
|
||
## Logging | ||
|
||
Enable `ALL` logging level for `org.apache.spark.internal.io.HadoopMapReduceWriteConfigUtil` logger to see what happens inside. | ||
|
||
Add the following line to `conf/log4j2.properties`: | ||
|
||
```text | ||
logger.HadoopMapReduceWriteConfigUtil.name = org.apache.spark.internal.io.HadoopMapReduceWriteConfigUtil | ||
logger.HadoopMapReduceWriteConfigUtil.level = all | ||
``` | ||
|
||
Refer to [Logging](spark-logging.md). |
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