spark-instrumented-optimizer/dev/create-release
Kazuaki Ishizaki 8d1b5ba766 [SPARK-28906][BUILD] Fix incorrect information in bin/spark-submit --version
### What changes were proposed in this pull request?
This PR allows `bin/spark-submit --version` to show the correct information while the previous versions, which were created by `dev/create-release/do-release-docker.sh`, show incorrect information.

There are two root causes to show incorrect information:

1. Did not pass `USER` environment variable to the docker container
1. Did not keep `.git` directory in the work directory

### Why are the changes needed?
The information is missing while the previous versions show the correct information.

### Does this PR introduce any user-facing change?
Yes, the following is the console output in branch-2.3

```
$ bin/spark-submit --version
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.3.4
      /_/

Using Scala version 2.11.8, OpenJDK 64-Bit Server VM, 1.8.0_212
Branch HEAD
Compiled by user ishizaki on 2019-09-02T02:18:10Z
Revision 8c6f8150f3
Url https://gitbox.apache.org/repos/asf/spark.git
Type --help for more information.
```

Without this PR, the console output is as follows
```
$ spark-submit --version
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.3.4
      /_/

Using Scala version 2.11.8, OpenJDK 64-Bit Server VM, 1.8.0_212
Branch
Compiled by user on 2019-08-26T08:29:39Z
Revision
Url
Type --help for more information.
```

### How was this patch tested?
After building the package, I manually executed `bin/spark-submit --version`

Closes #25655 from kiszk/SPARK-28906.

Authored-by: Kazuaki Ishizaki <ishizaki@jp.ibm.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
2019-09-11 08:12:44 -05:00
..
spark-rm [SPARK-28868][INFRA] Specify Jekyll version to 3.8.6 in release docker image 2019-08-25 15:38:41 -07:00
announce.tmpl [SPARK-28951][INFRA] Add release announce template 2019-09-02 14:55:05 -07:00
do-release-docker.sh [SPARK-28906][BUILD] Fix incorrect information in bin/spark-submit --version 2019-09-11 08:12:44 -05:00
do-release.sh [SPARK-24372][BUILD] Add scripts to help with preparing releases. 2018-06-22 12:38:34 -05:00
generate-contributors.py [SPARK-25238][PYTHON] lint-python: Fix W605 warnings for pycodestyle 2.4 2018-09-13 11:19:43 +08:00
known_translations [MINOR] update known_translations 2018-11-06 14:52:02 -08:00
release-build.sh [SPARK-28906][BUILD] Fix incorrect information in bin/spark-submit --version 2019-09-11 08:12:44 -05:00
release-tag.sh [MINOR][BUILD] Fix script name in release-tag.sh usage message 2019-01-06 22:45:18 -08:00
release-util.sh [SPARK-28511][INFRA] Get REV from RELEASE_VERSION instead of VERSION 2019-07-25 10:54:24 -07:00
releaseutils.py [MINOR][BUILD] ensure call to translate_component has correct number of arguments 2019-01-16 21:00:58 -06:00
translate-contributors.py [SPARK-19002][BUILD][PYTHON] Check pep8 against all Python scripts 2017-01-02 15:23:19 +00:00
vote.tmpl [MINOR][DOCS] Tighten up some key links to the project and download pages to use HTTPS 2019-05-21 10:56:42 -07:00