Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-12160][MLLIB] Use SQLContext.getOrCreate in MLlib #10161

Closed
wants to merge 1 commit into from

Conversation

jkbradley
Copy link
Member

Switched from using SQLContext constructor to using getOrCreate, mainly in model save/load methods.

This covers all instances in spark.mllib. There were no uses of the constructor in spark.ml.

CC: @mengxr @yhuai

@yhuai
Copy link
Contributor

yhuai commented Dec 6, 2015

test this please

1 similar comment
@yhuai
Copy link
Contributor

yhuai commented Dec 6, 2015

test this please

@SparkQA
Copy link

SparkQA commented Dec 6, 2015

Test build #47247 has finished for PR 10161 at commit e9aaf96.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request Dec 8, 2015
Switched from using SQLContext constructor to using getOrCreate, mainly in model save/load methods.

This covers all instances in spark.mllib.  There were no uses of the constructor in spark.ml.

CC: mengxr yhuai

Author: Joseph K. Bradley <[email protected]>

Closes #10161 from jkbradley/mllib-sqlcontext-fix.

(cherry picked from commit 3e7e05f)
Signed-off-by: Xiangrui Meng <[email protected]>
@asfgit asfgit closed this in 3e7e05f Dec 8, 2015
@mengxr
Copy link
Contributor

mengxr commented Dec 8, 2015

LGTM. Verified that there are no new SQLContext under mllib/src/main. Merged into master and branch-1.6. I'm not sure whether we should backport it to 1.5 and 1.4 because the issue is caused by changes in Spark SQL 1.6.

jkbradley added a commit to jkbradley/spark that referenced this pull request Dec 8, 2015
Switched from using SQLContext constructor to using getOrCreate, mainly in model save/load methods.

This covers all instances in spark.mllib.  There were no uses of the constructor in spark.ml.

CC: mengxr yhuai

Author: Joseph K. Bradley <[email protected]>

Closes apache#10161 from jkbradley/mllib-sqlcontext-fix.

Conflicts:
	mllib/src/main/scala/org/apache/spark/mllib/feature/ChiSqSelector.scala
asfgit pushed a commit that referenced this pull request Dec 8, 2015
This backports [#10161] to Spark 1.5, with the difference that ChiSqSelector does not require modification.

Switched from using SQLContext constructor to using getOrCreate, mainly in model save/load methods.

This covers all instances in spark.mllib. There were no uses of the constructor in spark.ml.

CC: yhuai mengxr

Author: Joseph K. Bradley <[email protected]>

Closes #10183 from jkbradley/sqlcontext-backport1.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants