[
https://issues.apache.org/jira/browse/SPARK-14907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joseph K. Bradley reopened SPARK-14907:
---------------------------------------
Assignee: Dongjoon Hyun
> 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
> Assignee: Dongjoon Hyun
> Priority: Trivial
> Fix For: 2.0.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]