rmpifer opened a new pull request #2148:
URL: https://github.com/apache/hudi/pull/2148


   ## *Tips*
   - *Thank you very much for contributing to Apache Hudi.*
   - *Please review https://hudi.apache.org/contributing.html before opening a 
pull request.*
   
   ## What is the purpose of the pull request
   
   * Hudi cli by default has spark master set to "yarn-client". In spark 2.x 
yarn-client was deprecated and in spark 3.x it was completely removed.
   
   https://issues.apache.org/jira/browse/SPARK-13220
   
   This causes following error when using hudi cli clean and compact commands 
running on spark 3
   
   ```
   Exception in thread "main" org.apache.spark.SparkException: Could not parse 
Master URL: 'yarn-client'
   hudi:basat 
org.apache.spark.SparkContext$.org$apache$spark$SparkContext$$createTaskScheduler(SparkContext.scala:2925)
   hudi:basat org.apache.spark.SparkContext.<init>(SparkContext.scala:528)
   hudi:basat 
org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:58)
   hudi:basat 
org.apache.hudi.cli.utils.SparkUtil.initJavaSparkConf(SparkUtil.java:95)
   ```
   
   ## Brief change log
   
   * This updates default master set in spark configuration to "yarn". By 
default deploy mode is set to "client".
   
   ## Verify this pull request
   
   * Validated hudi cli clean and compact commands run successfully on Spark 2 
and 3
   
   ## Committer checklist
   
    - [ ] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA.


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to