Skip to content

Comments

[SPARK-43580][PYTHON][TESTS] Add https://dlcdn.apache.org/ to default_sites of get_preferred_mirrors#41222

Closed
dongjoon-hyun wants to merge 2 commits intoapache:masterfrom
dongjoon-hyun:SPARK-43580
Closed

[SPARK-43580][PYTHON][TESTS] Add https://dlcdn.apache.org/ to default_sites of get_preferred_mirrors#41222
dongjoon-hyun wants to merge 2 commits intoapache:masterfrom
dongjoon-hyun:SPARK-43580

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented May 18, 2023

What changes were proposed in this pull request?

This PR aims to add https://dlcdn.apache.org/ to the default mirror site list during python installation tests.

Why are the changes needed?

This is a preferred mirror. So, even if https://www.apache.org/dyn/closer.lua is inaccessible, we will download from https://dlcdn.apache.org/.

$ curl https://www.apache.org/dyn/closer.lua\?preferred\=true
https://dlcdn.apache.org/

Although we try to get this programmatically, sometimes https://www.apache.org/dyn/closer.lua seems to fail.
https://github.com/apache/spark/blob/acad77d56112f2cab2ce5adca913b75ce659add5/python/pyspark/install.py#L169C2-L179

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs.

@dongjoon-hyun
Copy link
Member Author

Thank you!

@dongjoon-hyun dongjoon-hyun deleted the SPARK-43580 branch May 19, 2023 00:32
snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
…lt_sites of get_preferred_mirrors

### What changes were proposed in this pull request?

This PR aims to add `https://dlcdn.apache.org/` to the default mirror site list during python installation tests.

### Why are the changes needed?

This is a preferred mirror. So, even if `https://www.apache.org/dyn/closer.lua` is inaccessible, we will download from `https://dlcdn.apache.org/`.
```
$ curl https://www.apache.org/dyn/closer.lua\?preferred\=true
https://dlcdn.apache.org/
```

Although we try to get this programmatically, sometimes `https://www.apache.org/dyn/closer.lua` seems to fail.
https://github.com/apache/spark/blob/acad77d56112f2cab2ce5adca913b75ce659add5/python/pyspark/install.py#L169C2-L179

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

Closes apache#41222 from dongjoon-hyun/SPARK-43580.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants