Skip to content

[MINOR][TEST] Expand spark-submit test to allow python2/3 executable #24407

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

Closed
wants to merge 1 commit into from

Conversation

srowen
Copy link
Member

@srowen srowen commented Apr 18, 2019

What changes were proposed in this pull request?

This backports a tiny part of another change:
4bdfda9#diff-3c792ce7265b69b448a984caf629c96bR161
... which just works around the possibility that the local python interpreter is 'python3' or 'python2' when running the spark-submit tests.

I'd like to backport to 2.3 too.

This otherwise prevents this test from passing on my mac, though I have a custom install with brew. But may affect others.

How was this patch tested?

Existing tests.

@srowen srowen self-assigned this Apr 18, 2019
@SparkQA
Copy link

SparkQA commented Apr 18, 2019

Test build #104711 has finished for PR 24407 at commit 4d0eef8.

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

@dongjoon-hyun
Copy link
Member

Merged to branch-2.4/2.3. Thank you, @srowen and @felixcheung .

dongjoon-hyun pushed a commit that referenced this pull request Apr 18, 2019
## What changes were proposed in this pull request?

This backports a tiny part of another change:
4bdfda9#diff-3c792ce7265b69b448a984caf629c96bR161
... which just works around the possibility that the local python interpreter is 'python3' or 'python2' when running the spark-submit tests.

I'd like to backport to 2.3 too.

This otherwise prevents this test from passing on my mac, though I have a custom install with brew. But may affect others.

## How was this patch tested?

Existing tests.

Closes #24407 from srowen/Python23check.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dongjoon-hyun pushed a commit that referenced this pull request Apr 18, 2019
## What changes were proposed in this pull request?

This backports a tiny part of another change:
4bdfda9#diff-3c792ce7265b69b448a984caf629c96bR161
... which just works around the possibility that the local python interpreter is 'python3' or 'python2' when running the spark-submit tests.

I'd like to backport to 2.3 too.

This otherwise prevents this test from passing on my mac, though I have a custom install with brew. But may affect others.

## How was this patch tested?

Existing tests.

Closes #24407 from srowen/Python23check.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit 7f64963)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@srowen srowen deleted the Python23check branch April 22, 2019 00:52
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Jul 23, 2019
## What changes were proposed in this pull request?

This backports a tiny part of another change:
apache@4bdfda9#diff-3c792ce7265b69b448a984caf629c96bR161
... which just works around the possibility that the local python interpreter is 'python3' or 'python2' when running the spark-submit tests.

I'd like to backport to 2.3 too.

This otherwise prevents this test from passing on my mac, though I have a custom install with brew. But may affect others.

## How was this patch tested?

Existing tests.

Closes apache#24407 from srowen/Python23check.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Jul 25, 2019
## What changes were proposed in this pull request?

This backports a tiny part of another change:
apache@4bdfda9#diff-3c792ce7265b69b448a984caf629c96bR161
... which just works around the possibility that the local python interpreter is 'python3' or 'python2' when running the spark-submit tests.

I'd like to backport to 2.3 too.

This otherwise prevents this test from passing on my mac, though I have a custom install with brew. But may affect others.

## How was this patch tested?

Existing tests.

Closes apache#24407 from srowen/Python23check.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Aug 1, 2019
## What changes were proposed in this pull request?

This backports a tiny part of another change:
apache@4bdfda9#diff-3c792ce7265b69b448a984caf629c96bR161
... which just works around the possibility that the local python interpreter is 'python3' or 'python2' when running the spark-submit tests.

I'd like to backport to 2.3 too.

This otherwise prevents this test from passing on my mac, though I have a custom install with brew. But may affect others.

## How was this patch tested?

Existing tests.

Closes apache#24407 from srowen/Python23check.

Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
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