nsivabalan opened a new pull request #4762:
URL: https://github.com/apache/hudi/pull/4762


   ## What is the purpose of the pull request
   
   Adding support to setting custom scheduler spark configs for streaming sink. 
   Users have to set "spark.scheduler.allocation.file=/sample_alloc_file" when 
they launch the spark-shell to leverage this. 
   sample file
   ```
     <?xml version="1.0"?>
     <allocations>
       <pool name="sparkdatasourcewrite">
         <schedulingMode>FAIR</schedulingMode>
         <weight>4</weight>
         <minShare>2</minShare>
       </pool>
       <pool name="hoodiecompact">
         <schedulingMode>FAIR</schedulingMode>
         <weight>3</weight>
         <minShare>1</minShare>
       </pool>
     </allocations>
   ```
   
   The poolname is hardcoded within hudi and so users are expected to match the 
pool names as is. 
   
   ## Brief change log
   
   *(for example:)*
     - *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
   
   ## Verify this pull request
   
   Tested this patch manually by explicitly setting the allocation file and 
w/o. 
   
   Snapshot for spark streaming write where configs are honored. 
   <img width="1769" alt="Screen Shot 2022-02-07 at 9 37 53 AM" 
src="https://user-images.githubusercontent.com/513218/152867682-a4df80d6-d3a5-4802-be3c-e42e18cc6580.png";>
   
   
   ## 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to