Skip to content

[SPARK-19064][PySpark]Fix pip installing of sub components - #16465

Closed
holdenk wants to merge 2 commits into
apache:masterfrom
holdenk:SPARK-19064-fix-pip-install-sub-components
Closed

[SPARK-19064][PySpark]Fix pip installing of sub components#16465
holdenk wants to merge 2 commits into
apache:masterfrom
holdenk:SPARK-19064-fix-pip-install-sub-components

Conversation

@holdenk

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Fix instalation of mllib and ml sub components, and more eagerly cleanup cache files during test script & make-distribution.

How was this patch tested?

Updated sanity test script to import mllib and ml sub-components.

…stribution scripts to be more explicit about cleanup. Also add pypandoc to dev requirements file since we want it for publishing
@SparkQA

Copy link
Copy Markdown

Test build #70848 has finished for PR 16465 at commit b28d9ca.

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

@holdenk

Copy link
Copy Markdown
ContributorAuthor

cc @JoshRosen who reviewed the original PR and is probably the most familiar.


from pyspark.sql import SparkSession
from pyspark.ml.param import Params
from pyspark.mllib.linalg import *

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better to import pyspark.ml.linalg or both?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just checks one sub component from each, we could import each with rename I suppose but not sure it would do much?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. i think this should be enough.

@holdenk

Copy link
Copy Markdown
ContributorAuthor

Gentle ping for @JoshRosen to @davies maybe?

@holdenk

Copy link
Copy Markdown
ContributorAuthor

Small follow up ping for @JoshRosen to @davies maybe?

@srowensrowen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say you can merge it yourself !

@holdenk

Copy link
Copy Markdown
ContributorAuthor

Sounds like a plan, I think should should probably be on the 2.1 branch as well so I'll go bug someone who has done backports to make sure I do that part right :)

@felixcheung

felixcheung commented Jan 25, 2017 via email

Copy link
Copy Markdown
Member

asfgit pushed a commit that referenced this pull request Jan 25, 2017
## What changes were proposed in this pull request?
Fix instalation of mllib and ml sub components, and more eagerly cleanup cache files during test script & make-distribution.
## How was this patch tested?
Updated sanity test script to import mllib and ml sub-components.
Author: Holden Karau <holden@us.ibm.com>
Closes#16465 from holdenk/SPARK-19064-fix-pip-install-sub-components.
(cherry picked from commit 965c82d)
Signed-off-by: Holden Karau <holden@us.ibm.com>
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
## What changes were proposed in this pull request?
Fix instalation of mllib and ml sub components, and more eagerly cleanup cache files during test script & make-distribution.
## How was this patch tested?
Updated sanity test script to import mllib and ml sub-components.
Author: Holden Karau <holden@us.ibm.com>
Closesapache#16465 from holdenk/SPARK-19064-fix-pip-install-sub-components.
@holdenk

Copy link
Copy Markdown
ContributorAuthor

Merged into master & branch-2.1

cmonkey pushed a commit to cmonkey/spark that referenced this pull request Feb 15, 2017
## What changes were proposed in this pull request?
Fix instalation of mllib and ml sub components, and more eagerly cleanup cache files during test script & make-distribution.
## How was this patch tested?
Updated sanity test script to import mllib and ml sub-components.
Author: Holden Karau <holden@us.ibm.com>
Closesapache#16465 from holdenk/SPARK-19064-fix-pip-install-sub-components.
Sign up for freeto 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.

5 participants

@holdenk@SparkQA@felixcheung@viirya@srowen