Skip to content

Commit c9aeabf

Browse files
committed
rename the StorgeLevel.TACHYON as StorageLevel.OFF_HEAP
1 parent 76805aa commit c9aeabf

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ object StorageLevel {
133133
val MEMORY_AND_DISK_2 = new StorageLevel(true, true, false, true, 2)
134134
val MEMORY_AND_DISK_SER = new StorageLevel(true, true, false, false)
135135
val MEMORY_AND_DISK_SER_2 = new StorageLevel(true, true, false, false, 2)
136-
val TACHYON = new StorageLevel(false, false, true, false)
136+
val OFF_HEAP = new StorageLevel(false, false, true, false)
137137

138138
/** Create a new StorageLevel object */
139139
def apply(useDisk: Boolean, useMemory: Boolean, useTachyon: Boolean,

core/src/test/scala/org/apache/spark/storage/BlockManagerSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,11 @@ class BlockManagerSuite extends FunSuite with BeforeAndAfter with PrivateMethodT
417417
val a1 = new Array[Byte](400)
418418
val a2 = new Array[Byte](400)
419419
val a3 = new Array[Byte](400)
420-
store.putSingle("a1", a1, StorageLevel.TACHYON)
421-
store.putSingle("a2", a2, StorageLevel.TACHYON)
422-
store.putSingle("a3", a3, StorageLevel.TACHYON)
423-
assert(store.getSingle("a2").isDefined, "a2 was in store")
420+
store.putSingle("a1", a1, StorageLevel.OFF_HEAP)
421+
store.putSingle("a2", a2, StorageLevel.OFF_HEAP)
422+
store.putSingle("a3", a3, StorageLevel.OFF_HEAP)
424423
assert(store.getSingle("a3").isDefined, "a3 was in store")
424+
assert(store.getSingle("a2").isDefined, "a2 was in store")
425425
assert(store.getSingle("a1").isDefined, "a1 was in store")
426426
} else {
427427
info("tachyon storage test disabled.")

examples/src/main/scala/org/apache/spark/examples/SparkTachyonHdfsLR.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ object SparkTachyonHdfsLR {
6161
Seq(new InputFormatInfo(conf, classOf[org.apache.hadoop.mapred.TextInputFormat], inputPath))
6262
))
6363
val lines = sc.textFile(inputPath)
64-
val points = lines.map(parsePoint _).persist(StorageLevel.TACHYON)
64+
val points = lines.map(parsePoint _).persist(StorageLevel.OFF_HEAP)
6565
val ITERATIONS = args(2).toInt
6666

6767
// Initialize w to a random value

examples/src/main/scala/org/apache/spark/examples/SparkTachyonPi.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object SparkTachyonPi {
4747
println("1- Pi is roughly " + 4.0 * count / n)
4848

4949
val rdd2 = spark.parallelize(1 to n, slices)
50-
rdd2.persist(StorageLevel.TACHYON)
50+
rdd2.persist(StorageLevel.OFF_HEAP)
5151
val count2 = rdd2.map { i =>
5252
val x = random * 2 - 1
5353
val y = random * 2 - 1

project/SparkBuild.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ object SparkBuild extends Build {
182182
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1),
183183

184184
resolvers ++= Seq(
185-
"Maven Repository" at "https://repo.maven.apache.org/maven2",
185+
"Maven Repository" at "http://repo.maven.apache.org/maven2",
186186
"Apache Repository" at "https://repository.apache.org/content/repositories/releases",
187187
"JBoss Repository" at "https://repository.jboss.org/nexus/content/repositories/releases/",
188188
"MQTT Repository" at "https://repo.eclipse.org/content/repositories/paho-releases/",
189-
"Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/",
189+
"Cloudera Repository" at "http://repository.cloudera.com/artifactory/cloudera-repos/",
190190
// For Sonatype publishing
191191
// "sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
192192
// "sonatype-staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/",

0 commit comments

Comments
 (0)