hddong opened a new pull request #1096: [HUDI-398]Add set env for spark launcher
URL: https://github.com/apache/incubator-hudi/pull/1096
 
 
   ## *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
   
   *It always throw exception `SPAR_HOEM not found` when SPARK_HOME is not set, 
so we need quit and set it.
   ```
   hudi:hudi_cow_table->commit rollback --commit 20191210155859
   Command failed java.lang.IllegalStateException: Spark home not found; set it 
explicitly or use the SPARK_HOME environment variable.
   Listening for transport dt_socket at address: 5005
   Spark home not found; set it explicitly or use the SPARK_HOME environment 
variable.
   java.lang.IllegalStateException: Spark home not found; set it explicitly or 
use the SPARK_HOME environment variable.
       at 
org.apache.spark.launcher.CommandBuilderUtils.checkState(CommandBuilderUtils.java:248)
       at 
org.apache.spark.launcher.AbstractCommandBuilder.getSparkHome(AbstractCommandBuilder.java:248)
   ```
   After add this function for cli, we can type SPARK_HOEM and other conf on 
hudi-CLI:
   `[hudi->set --conf SPARK_HOME=/usr/bch/3.0.1/spark`
   *
   
   ## Brief change log
   
   *(for example:)*
     - *add a new cli command to set conf for spark launcher*
   
   ## Verify this pull request
   
   This pull request is a trivial rework / code cleanup without any test 
coverage.
   
   ## 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


With regards,
Apache Git Services

Reply via email to