Skip to content

Commit

Permalink
Adapt existing style
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSaVioR committed Feb 15, 2020
1 parent 5760af9 commit 705d129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -191,15 +191,15 @@ package object config {

private[spark] val EVENT_LOG_ENABLE_ROLLING =
ConfigBuilder("spark.eventLog.rolling.enabled")
.doc("Whether rolling over event log files is enabled. If set to true, it cuts down " +
.doc("Whether rolling over event log files is enabled. If set to true, it cuts down " +
"each event log file to the configured size.")
.booleanConf
.createWithDefault(false)

private[spark] val EVENT_LOG_ROLLING_MAX_FILE_SIZE =
ConfigBuilder("spark.eventLog.rolling.maxFileSize")
.doc(s"Precondition: ${EVENT_LOG_ENABLE_ROLLING.key}. " +
"The max size of event log file to be rolled over.")
.doc(s"When ${EVENT_LOG_ENABLE_ROLLING.key}=true, specifies the max size of event log file" +
" to be rolled over.")
.bytesConf(ByteUnit.BYTE)
.checkValue(_ >= ByteUnit.MiB.toBytes(10), "Max file size of event log should be " +
"configured to be at least 10 MiB.")
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.md
Expand Up @@ -1033,7 +1033,7 @@ Apart from these, the following properties are also available, and may be useful
<td><code>spark.eventLog.rolling.maxFileSize</code></td>
<td>128m</td>
<td>
The max size of event log file before it's rolled over.
When <code>spark.eventLog.rolling.enabled=true</code>, specifies the max size of event log file before it's rolled over.
</td>
</tr>
<tr>
Expand Down

0 comments on commit 705d129

Please sign in to comment.