LuciferYang opened a new pull request #32384:
URL: https://github.com/apache/spark/pull/32384


   ### What changes were proposed in this pull request?
   `HadoopVersionInfoSuite` use a separate `ivyPath` to download the jars when 
create a new `IsolatedClientLoader`,  and the ivy cache directory will be 
deleted after this suite, so `HadoopVersionInfoSuite` can't reuse 
`hive-ivy-cache` by specifying environment variables 
`SPARK_VERSIONS_SUITE_IVY_PATH` like `VersionsSuite` and `HiveVersionSuites`.
   
   The main change of this pr is change to use `HiveClientBuilder.ivyPath` to 
store jars, then we can speed up this test suite with specify environment 
variables `SPARK_VERSIONS_SUITE_IVY_PATH`.
    
   ### Why are the changes needed?
   Speed up `HadoopVersionInfoSuite`
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   
   - Pass the Jenkins or GitHub Action
   - Manual test
   
   **Before**
   
   1. Execute command: `mvn clean test -Phadoop-3.2 -Phive-2.3 -Phadoop-cloud 
-Pmesos -Pyarn -Pkinesis-asl -Phive-thriftserver -Pspark-ganglia-lgpl 
-Pkubernetes -Phive -pl sql/hive -Dtest=none 
-DwildcardSuites=org.apache.spark.sql.hive.client.HadoopVersionInfoSuite`
   
   ```
   Run completed in **1 minute, 48 seconds**.
   Total number of tests run: 3
   Suites: completed 2, aborted 0
   Tests: succeeded 3, failed 0, canceled 0, ignored 0, pending 0
   All tests passed.
   ```
   
   **After**
   
   1. Execute command: `export 
SPARK_VERSIONS_SUITE_IVY_PATH=/XXX/hive-ivy-cache` 
   2. Execute command: `mvn clean test -Phadoop-3.2 -Phive-2.3 -Phadoop-cloud 
-Pmesos -Pyarn -Pkinesis-asl -Phive-thriftserver -Pspark-ganglia-lgpl 
-Pkubernetes -Phive -pl sql/hive -Dtest=none 
-DwildcardSuites=org.apache.spark.sql.hive.client.HadoopVersionInfoSuite`
   
   ```
   Run completed in **14 seconds, 958 milliseconds**.
   Total number of tests run: 3
   Suites: completed 2, aborted 0
   Tests: succeeded 3, failed 0, canceled 0, ignored 0, pending 0
   ```
   
   


-- 
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]



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

Reply via email to