You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2016/12/12 05:19:58 UTC
[jira] [Commented] (SPARK-18827) Cann't cache broadcast to disk
[ https://issues.apache.org/jira/browse/SPARK-18827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15741009#comment-15741009 ]
Yuming Wang commented on SPARK-18827:
-------------------------------------
I will create a PR later.
> Cann't cache broadcast to disk
> ------------------------------
>
> Key: SPARK-18827
> URL: https://issues.apache.org/jira/browse/SPARK-18827
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 2.0.1, 2.0.2, 2.1.0
> Reporter: Yuming Wang
>
> How to reproduce it:
> {code:java}
> test("Cache broadcast to disk") {
> val conf = new SparkConf()
> .setAppName("Cache broadcast to disk")
> .setMaster("local")
> .set("spark.memory.useLegacyMode", "true")
> .set("spark.storage.memoryFraction", "0.0")
> sc = new SparkContext(conf)
> val list = List[Int](1, 2, 3, 4)
> val broadcast = sc.broadcast(list)
> assert(broadcast.value.sum === 10)
> }
> {code}
> It will fail on spark2.0.1, spark2.0.2 and spark2.1.0.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org