Skip to content
Snippets Groups Projects
Commit 06e2433c authored by Justin Loew's avatar Justin Loew
Browse files

Remove by size doesn't break the build

parent fce9090d
No related branches found
No related tags found
No related merge requests found
......@@ -406,7 +406,7 @@ private[spark] class MemoryStore(
case _ =>
}
memoryManager.releaseStorageMemory(entry.size, entry.memoryMode)
logDebug(s"Block $blockId of size ${entry.size} dropped " +
logInfo(s"Block $blockId of size ${entry.size} dropped " +
s"from memory (free ${maxMemory - blocksMemoryUsed})")
true
} else {
......
......@@ -18,6 +18,7 @@
// scalastyle:off println
package org.apache.spark.examples
import org.apache.spark.memory.MemoryMode
import org.apache.spark.sql.SparkSession
/**
......@@ -79,6 +80,9 @@ object SparkPageRank {
val output = ranks.collect()
output.foreach(tup => println(s"${tup._1} has rank: ${tup._2} ."))
spark.sparkContext.env.blockManager.memoryStore
.evictBlocksToFreeSpace(None, 1000000L, MemoryMode.ON_HEAP)
spark.stop()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment