kiszk opened a new pull request #25655: [SPARK-28906][Build] Fix incorrect 
information in bin/spark-submit --version
URL: https://github.com/apache/spark/pull/25655
 
 
   ### 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`
   
   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 8c6f8150f3c6298ff4e1c7e06028f12d7eaf0210
   Url https://gitbox.apache.org/repos/asf/spark.git
   Type --help for more information.
   ```
   
   ### How was this patch tested?
   After building the package, I manually executed `bin/spark-submit --version`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to