Skip to content

Commit

Permalink
Merge branch 'master' of git://git.apache.org/spark into timeline-vie…
Browse files Browse the repository at this point in the history
…wer-feature
  • Loading branch information
sarutak committed Apr 3, 2015
2 parents e85e9aa + 5db8912 commit d05f2c2
Show file tree
Hide file tree
Showing 75 changed files with 1,321 additions and 902 deletions.
4 changes: 1 addition & 3 deletions core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
// Thread Local variable that can be used by users to pass information down the stack
private val localProperties = new InheritableThreadLocal[Properties] {
override protected def childValue(parent: Properties): Properties = new Properties(parent)
override protected def initialValue(): Properties = new Properties()
}

/**
Expand Down Expand Up @@ -474,9 +475,6 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
* Spark fair scheduler pool.
*/
def setLocalProperty(key: String, value: String) {
if (localProperties.get() == null) {
localProperties.set(new Properties())
}
if (value == null) {
localProperties.get.remove(key)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ private[spark] object PythonRDD extends Logging {
*/
private def serveIterator[T](items: Iterator[T], threadName: String): Int = {
val serverSocket = new ServerSocket(0, 1)
serverSocket.setReuseAddress(true)
// Close the socket if no connection in 3 seconds
serverSocket.setSoTimeout(3000)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import org.apache.spark.util.CallSite
*/
private[spark] class ActiveJob(
val jobId: Int,
val finalStage: Stage,
val finalStage: ResultStage,
val func: (TaskContext, Iterator[_]) => _,
val partitions: Array[Int],
val callSite: CallSite,
Expand Down
Loading

0 comments on commit d05f2c2

Please sign in to comment.