Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit b0a5839

Browse files
committed
Fix scalastyle
1 parent 992acbe commit b0a5839

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

core/src/main/scala/org/apache/spark/scheduler/cluster/SchedulerBackendUtils.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ private[spark] object SchedulerBackendUtils {
2424
val DEFAULT_NUMBER_EXECUTORS = 2
2525

2626
/**
27-
* Getting the initial target number of executors depends on whether dynamic allocation is
28-
* enabled.
29-
* If not using dynamic allocation it gets the number of executors requested by the user.
30-
*/
27+
* Getting the initial target number of executors depends on whether dynamic allocation is
28+
* enabled.
29+
* If not using dynamic allocation it gets the number of executors requested by the user.
30+
*/
3131
def getInitialTargetExecutorNumber(
3232
conf: SparkConf,
3333
numExecutors: Int = DEFAULT_NUMBER_EXECUTORS): Int = {

resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ import java.util.concurrent._
2222
import java.util.concurrent.atomic.AtomicInteger
2323
import java.util.regex.Pattern
2424

25-
import scala.collection.JavaConverters._
26-
import scala.collection.mutable
27-
import scala.collection.mutable.{ArrayBuffer, HashMap, HashSet, Queue}
28-
import scala.util.control.NonFatal
2925
import org.apache.hadoop.yarn.api.records._
3026
import org.apache.hadoop.yarn.client.api.AMRMClient
3127
import org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest
3228
import org.apache.hadoop.yarn.conf.YarnConfiguration
29+
import scala.collection.JavaConverters._
30+
import scala.collection.mutable
31+
import scala.collection.mutable.{ArrayBuffer, HashMap, HashSet, Queue}
32+
import scala.util.control.NonFatal
3333

3434
import org.apache.spark.{SecurityManager, SparkConf, SparkException}
3535
import org.apache.spark.deploy.yarn.YarnSparkHadoopUtil._

0 commit comments

Comments
 (0)