Skip to content

Commit

Permalink
Fix a typo and remove chekced exception annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Nov 28, 2016
1 parent d2c6e86 commit 7d44dc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2061,9 +2061,8 @@ class SparkContext(config: SparkConf) extends Logging {
* Cancel a given job if it's scheduled or running.
*
* @param jobId the job ID to cancel
* @throws InterruptedException if the cancel message cannot be sent
* @note Throws `InterruptedException` if the cancel message cannot be sent
*/
@throws(classOf[InterruptedException])
def cancelJob(jobId: Int) {
dagScheduler.cancelJob(jobId)
}
Expand All @@ -2072,9 +2071,8 @@ class SparkContext(config: SparkConf) extends Logging {
* Cancel a given stage and all jobs associated with it.
*
* @param stageId the stage ID to cancel
* @throws InterruptedException if the cancel message cannot be sent
* @note Throws `InterruptedException` if the cancel message cannot be sent
*/
@throws(classOf[InterruptedException])
def cancelStage(stageId: Int) {
dagScheduler.cancelStage(stageId)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import org.apache.spark.mllib.tree.loss.{LogLoss, Loss, SquaredError}
* If the current loss on the validation set is greater than 0.01, the diff
* of validation error is compared to relative tolerance which is
* validationTol * (current loss on the validation set).
* If the current loss on the validation set is less than or euqal to 0.01,
* If the current loss on the validation set is less than or equal to 0.01,
* the diff of validation error is compared to absolute tolerance which is
* validationTol * 0.01.
* Ignored when
Expand Down

0 comments on commit 7d44dc5

Please sign in to comment.