spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (JIRA)" <>
Subject [jira] [Created] (SPARK-14907) Use repartition in
Date Tue, 26 Apr 2016 00:18:13 GMT
Dongjoon Hyun created SPARK-14907:

             Summary: Use repartition in
                 Key: SPARK-14907
             Project: Spark
          Issue Type: Improvement
          Components: MLlib
            Reporter: Dongjoon Hyun
            Priority: Trivial

This issue changes `` function like the following code that is similar
to other algorithms' parquet write.
-      val dataRDD: DataFrame = sc.parallelize(Seq(data), 1).toDF()
-      // TODO: repartition with 1 partition after SPARK-5532 gets fixed
-      dataRDD.write.parquet(Loader.dataPath(path))
+      sqlContext.createDataFrame(Seq(data)).repartition(1).write.parquet(Loader.dataPath(path))

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message