GitHub user yaooqinn opened a pull request:
https://github.com/apache/spark/pull/20469
[SPARK-23295][Build][Minor]Exclude Waring message when generating versions
in make-distribution.sh
## What changes were proposed in this pull request?
When we specified a wrong profile to make a spark distribution, such as
`-Phadoop1000`, we will get an odd package named like `spark-[WARNING] The
requested profile "hadoop1000" could not be activated because it does not
exist.-bin-hadoop-2.7.tgz`, which actually should be
`"spark-$VERSION-bin-$NAME.tgz"`
## How was this patch tested?
### before
```
build/mvn help:evaluate -Dexpression=scala.binary.version -Phadoop1000
2>/dev/null | grep -v "INFO" | tail -n 1
[WARNING] The requested profile "hadoop1000" could not be activated because
it does not exist.
```
```
build/mvn help:evaluate -Dexpression=project.version -Phadoop1000
2>/dev/null | grep -v "INFO" | tail -n 1
[WARNING] The requested profile "hadoop1000" could not be activated because
it does not exist.
```
### after
build/mvn help:evaluate -Dexpression=project.version -Phadoop1000
2>/dev/null | grep -v "INFO" | grep -v "WARNING" | tail -n 1
2.4.0-SNAPSHOT
```
```
build/mvn help:evaluate -Dexpression=scala.binary.version
-Dscala.binary.version=2.11.1 2>/dev/null | grep -v "INFO" | grep -v "WARNING"
| tail -n 1
2.11.1
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yaooqinn/spark dist-minor
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20469.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20469
----
commit 15d67eee9baa87a8fa08a265549000386fd476a6
Author: Kent Yao <yaooqinn@...>
Date: 2018-02-01T07:27:00Z
exclude warning patten too
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]