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


   ## What is the purpose of the pull request
   
   - When default hudi conf is not present, we should do warn log and not error 
log
   - Also fixed loading of props from default file in default dir. 
   
   ## Brief change log
   
   *(for example:)*
     - *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
   
   ## Verify this pull request
   
   - tested it manually since creation of files under /etc/hudi/conf needs root 
level permission and hence can't write unit tests.
   
   ```
   scala> df.write.format("hudi").
        |   options(getQuickstartWriteConfigs).
        |   option(PRECOMBINE_FIELD.key(), "ts").
        |   option(RECORDKEY_FIELD.key(), "uuid").
        |   option(PARTITIONPATH_FIELD.key(), "partitionpath").
        |   option(TBL_NAME.key(), tableName).
        |   mode(Overwrite).
        |   save(basePath)
   21/11/30 11:11:01 WARN DFSPropertiesConfiguration: Cannot find 
HUDI_CONF_DIR, please set it as the dir of hudi-defaults.conf
   21/11/30 11:11:01 WARN DFSPropertiesConfiguration: Properties file 
file:/etc/hudi/conf/hudi-defaults.conf not found. Ignoring to load props file
   21/11/30 11:11:01 WARN HoodieSparkSqlWriter$: hoodie table at 
file:/tmp/hudi_trips_cow already exists. Deleting existing data & overwriting 
with new data.
   ```
   
   ## 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