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

Commit dc74c0e

Browse files
heary-caosrowen
authored andcommitted
[MINOR][SQL] remove unuse import class
## What changes were proposed in this pull request? this PR describe remove the import class that are unused. ## How was this patch tested? N/A Author: caoxuewen <[email protected]> Closes apache#19131 from heary-cao/unuse_import.
1 parent 4bab8f5 commit dc74c0e

File tree

35 files changed

+16
-47
lines changed

35 files changed

+16
-47
lines changed

core/src/main/scala/org/apache/spark/broadcast/TorrentBroadcast.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import org.apache.spark.internal.Logging
3030
import org.apache.spark.io.CompressionCodec
3131
import org.apache.spark.serializer.Serializer
3232
import org.apache.spark.storage._
33-
import org.apache.spark.util.{ByteBufferInputStream, Utils}
33+
import org.apache.spark.util.Utils
3434
import org.apache.spark.util.io.{ChunkedByteBuffer, ChunkedByteBufferOutputStream}
3535

3636
/**

core/src/main/scala/org/apache/spark/deploy/DependencyUtils.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ package org.apache.spark.deploy
1919

2020
import java.io.File
2121

22-
import scala.collection.mutable.HashMap
23-
2422
import org.apache.commons.lang3.StringUtils
2523
import org.apache.hadoop.conf.Configuration
2624
import org.apache.hadoop.fs.{FileSystem, Path}

core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ import scala.collection.mutable
2626
import scala.util.{Failure, Success}
2727
import scala.util.control.NonFatal
2828

29-
import org.apache.hadoop.security.{Credentials, UserGroupInformation}
30-
3129
import org.apache.spark._
3230
import org.apache.spark.TaskState.TaskState
3331
import org.apache.spark.deploy.SparkHadoopUtil

core/src/main/scala/org/apache/spark/network/netty/NettyBlockRpcServer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import scala.reflect.ClassTag
2525

2626
import org.apache.spark.internal.Logging
2727
import org.apache.spark.network.BlockDataManager
28-
import org.apache.spark.network.buffer.{ManagedBuffer, NioManagedBuffer}
28+
import org.apache.spark.network.buffer.NioManagedBuffer
2929
import org.apache.spark.network.client.{RpcResponseCallback, TransportClient}
3030
import org.apache.spark.network.server.{OneForOneStreamManager, RpcHandler, StreamManager}
3131
import org.apache.spark.network.shuffle.protocol.{BlockTransferMessage, OpenBlocks, StreamHandle, UploadBlock}

core/src/main/scala/org/apache/spark/scheduler/ShuffleMapStage.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package org.apache.spark.scheduler
1919

2020
import scala.collection.mutable.HashSet
2121

22-
import org.apache.spark.{MapOutputTrackerMaster, ShuffleDependency, SparkEnv}
22+
import org.apache.spark.{MapOutputTrackerMaster, ShuffleDependency}
2323
import org.apache.spark.rdd.RDD
2424
import org.apache.spark.util.CallSite
2525

core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import org.apache.spark.internal.Logging
3232
import org.apache.spark.internal.config
3333
import org.apache.spark.scheduler.SchedulingMode.SchedulingMode
3434
import org.apache.spark.scheduler.TaskLocality.TaskLocality
35-
import org.apache.spark.scheduler.local.LocalSchedulerBackend
3635
import org.apache.spark.storage.BlockManagerId
3736
import org.apache.spark.util.{AccumulatorV2, ThreadUtils, Utils}
3837

core/src/main/scala/org/apache/spark/security/CryptoStreamUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
package org.apache.spark.security
1818

19-
import java.io.{EOFException, InputStream, OutputStream}
19+
import java.io.{InputStream, OutputStream}
2020
import java.nio.ByteBuffer
2121
import java.nio.channels.{ReadableByteChannel, WritableByteChannel}
2222
import java.util.Properties

core/src/main/scala/org/apache/spark/storage/BlockManagerManagedBuffer.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import java.nio.ByteBuffer
2222
import java.util.concurrent.atomic.AtomicInteger
2323

2424
import org.apache.spark.network.buffer.ManagedBuffer
25-
import org.apache.spark.util.io.ChunkedByteBuffer
2625

2726
/**
2827
* This [[ManagedBuffer]] wraps a [[BlockData]] instance retrieved from the [[BlockManager]]

core/src/main/scala/org/apache/spark/storage/DiskStore.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,19 @@ import java.io._
2121
import java.nio.ByteBuffer
2222
import java.nio.channels.{Channels, ReadableByteChannel, WritableByteChannel}
2323
import java.nio.channels.FileChannel.MapMode
24-
import java.nio.charset.StandardCharsets.UTF_8
2524
import java.util.concurrent.ConcurrentHashMap
2625

2726
import scala.collection.mutable.ListBuffer
2827

29-
import com.google.common.io.{ByteStreams, Closeables, Files}
28+
import com.google.common.io.Closeables
3029
import io.netty.channel.{DefaultFileRegion, FileRegion}
3130
import io.netty.util.AbstractReferenceCounted
3231

3332
import org.apache.spark.{SecurityManager, SparkConf}
3433
import org.apache.spark.internal.Logging
35-
import org.apache.spark.network.buffer.ManagedBuffer
3634
import org.apache.spark.network.util.JavaUtils
3735
import org.apache.spark.security.CryptoStreamUtils
38-
import org.apache.spark.util.{ByteBufferInputStream, Utils}
36+
import org.apache.spark.util.Utils
3937
import org.apache.spark.util.io.ChunkedByteBuffer
4038

4139
/**

core/src/main/scala/org/apache/spark/ui/JettyUtils.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import java.net.{URI, URL}
2121
import javax.servlet.DispatcherType
2222
import javax.servlet.http.{HttpServlet, HttpServletRequest, HttpServletResponse}
2323

24-
import scala.collection.mutable.ArrayBuffer
2524
import scala.language.implicitConversions
2625
import scala.xml.Node
2726

0 commit comments

Comments
 (0)