diff options
author | Mark Grover <mark@apache.org> | 2016-04-08 10:10:10 -0700 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2016-04-08 10:10:10 -0700 |
commit | a9b630f42ac0c6be3437f206beddaf0ef737f5c8 (patch) | |
tree | d2e7edad4de3eb79a851beaa4227d10bf0620279 /python/pyspark/ml/classification.py | |
parent | 583b5e05309adb73cdffd974a810d6bfb5f2ff95 (diff) | |
download | spark-a9b630f42ac0c6be3437f206beddaf0ef737f5c8.tar.gz spark-a9b630f42ac0c6be3437f206beddaf0ef737f5c8.tar.bz2 spark-a9b630f42ac0c6be3437f206beddaf0ef737f5c8.zip |
[SPARK-14477][BUILD] Allow custom mirrors for downloading artifacts in build/mvn
## What changes were proposed in this pull request?
Allows to override locations for downloading Apache and Typesafe artifacts in build/mvn script.
## How was this patch tested?
By running script like
````
# Remove all previously downloaded artifacts
rm -rf build/apache-maven*
rm -rf build/zinc-*
rm -rf build/scala-*
# Make sure path is clean and doesn't contain mvn, for example.
...
# Run a command without setting anything and make sure it succeeds
build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 package
# Run a command setting the default location as mirror and make sure it succeeds
APACHE_MIRROR=http://mirror.infra.cloudera.com/apache/ build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 package
# Do the same without the trailing slash this time and make sure it succeeds
APACHE_MIRROR=http://mirror.infra.cloudera.com/apache build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 package
# Do it with a bad URL and make sure it fails
APACHE_MIRROR=xyz build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 package
````
Author: Mark Grover <mark@apache.org>
Closes #12250 from markgrover/spark-14477.
Diffstat (limited to 'python/pyspark/ml/classification.py')
0 files changed, 0 insertions, 0 deletions