hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-hudi] lamber-ken opened a new pull request #1432: [HUDI-716] Exception: Not an Avro data file when running HoodieCleanClient.runClean
Date Sat, 21 Mar 2020 06:57:56 GMT
lamber-ken opened a new pull request #1432: [HUDI-716] Exception: Not an Avro data file when
running HoodieCleanClient.runClean
URL: https://github.com/apache/incubator-hudi/pull/1432
 
 
   ## What is the purpose of the pull request
   
   More context, please go ahead with https://issues.apache.org/jira/browse/HUDI-716
   
   Fix `Not an avro data file ...`
   ```
   org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   Caused by: java.io.IOException: Not an Avro data file 
     at org.apache.avro.file.DataFileReader.openReader(DataFileReader.java:50) 
     at org.apache.hudi.common.util.AvroUtils.deserializeAvroMetadata(AvroUtils.java:147)

     at org.apache.hudi.common.util.CleanerUtils.getCleanerPlan(CleanerUtils.java:87) 
     at org.apache.hudi.client.HoodieCleanClient.runClean(HoodieCleanClient.java:141) ...
24 more
   ```
   
   With 0.5.1 onwards, hudi would first scan all files and store the plan (atomically) in
.clean.requested and .clean.inflight before triggering the actual clean. If there are any
intermittent failures, subsequent clean would read the cleaner plan again and retry.
   
   ![image](https://user-images.githubusercontent.com/20113411/77221350-06abd100-6b84-11ea-8290-4a598cd27c7e.png)
   
   ![image](https://user-images.githubusercontent.com/20113411/77221347-00b5f000-6b84-11ea-9e60-1aeee946bc90.png)
   
   ## Verify this pull request
   
   This pull request is a trivial rework without any test coverage.
   
   ## Committer checklist
   
    - [X] Has a corresponding JIRA in PR title & commit
    
    - [X] 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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message