You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/04/26 02:22:13 UTC

[jira] [Commented] (SPARK-14907) Use repartition in GLMRegressionModel.save

    [ https://issues.apache.org/jira/browse/SPARK-14907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15257324#comment-15257324 ] 

Apache Spark commented on SPARK-14907:
--------------------------------------

User 'dongjoon-hyun' has created a pull request for this issue:
https://github.com/apache/spark/pull/12676

> Use repartition in GLMRegressionModel.save
> ------------------------------------------
>
>                 Key: SPARK-14907
>                 URL: https://issues.apache.org/jira/browse/SPARK-14907
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>            Reporter: Dongjoon Hyun
>            Priority: Trivial
>
> This issue changes `GLMRegressionModel.save` function like the following code that is similar to other algorithms' parquet write.
> {code}
> -      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))
> {code}



--
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