sleep1661 opened a new issue, #5503:
URL: https://github.com/apache/hudi/issues/5503

   **_Tips before filing an issue_**
   
   - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)?
   
   - Join the mailing list to engage in conversations and get faster support at 
[email protected].
   
   - If you have triaged this as a bug, then file an 
[issue](https://issues.apache.org/jira/projects/HUDI/issues) directly.
   
   **Describe the problem you faced**
   
    Hive sync action failed when using spark-sql
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1. run spark-sql with hudi 
   /opt/spark/bin/spark-sql --master local \
   --conf 
spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension
   2. create hudi table and insert into some data.
   
   
   
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version : 0.12.0-SNAPSHOT
   
   * Spark version : 3.1.2
   
   * Hive version : 2.1.1
   
   * Hadoop version : 2.6.5
   
   * Storage (HDFS/S3/GCS..) : hdfs
   
   * Running on Docker? (yes/no) : no
   
   
   **Additional context**
   
   When I set hoodie.metadata.enable=false, hive sync action will be success. 
   
   **Stacktrace**
   
   ```Add the stacktrace of the error.```
   
   Caused by: 
org.apache.hudi.org.apache.hadoop.hbase.io.hfile.CorruptHFileException: Problem 
reading HFile Trailer from file 
hdfs://xxxx/user/hive/warehouse/hudi_test.db/tc_order3/.hoodie/metadata/files/.files-0000_00000000000000.log.1_0-48-26845
        at 
org.apache.hudi.org.apache.hadoop.hbase.io.hfile.HFileInfo.initTrailerAndContext(HFileInfo.java:355)
        at 
org.apache.hudi.org.apache.hadoop.hbase.io.hfile.HFileInfo.<init>(HFileInfo.java:124)
        at 
org.apache.hudi.io.storage.HoodieHFileUtils.createHFileReader(HoodieHFileUtils.java:82)
        at 
org.apache.hudi.io.storage.HoodieHFileReader.<init>(HoodieHFileReader.java:104)
        at 
org.apache.hudi.common.table.log.block.HoodieHFileDataBlock.deserializeRecords(HoodieHFileDataBlock.java:172)
        at 
org.apache.hudi.common.table.log.block.HoodieDataBlock.readRecordsFromBlockPayload(HoodieDataBlock.java:189)
        at 
org.apache.hudi.common.table.log.block.HoodieDataBlock.getRecordIterator(HoodieDataBlock.java:147)
        ... 77 more
   Caused by: java.lang.ExceptionInInitializerError
        at 
org.apache.hudi.org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.readFromStream(FixedFileTrailer.java:419)
        at 
org.apache.hudi.org.apache.hadoop.hbase.io.hfile.HFileInfo.initTrailerAndContext(HFileInfo.java:345)
        ... 83 more
   Caused by: java.lang.RuntimeException: Could not create  interface 
org.apache.hudi.org.apache.hadoop.hbase.regionserver.MetricsRegionServerSourceFactory
 Is the hadoop compatibility jar on the classpath?
        at 
org.apache.hudi.org.apache.hadoop.hbase.CompatibilitySingletonFactory.getInstance(CompatibilitySingletonFactory.java:77)
        at 
org.apache.hudi.org.apache.hadoop.hbase.io.MetricsIO.<init>(MetricsIO.java:32)
        at 
org.apache.hudi.org.apache.hadoop.hbase.io.hfile.HFile.<clinit>(HFile.java:176)
        ... 85 more
   Caused by: java.util.ServiceConfigurationError: 
org.apache.hudi.org.apache.hadoop.hbase.regionserver.MetricsRegionServerSourceFactory:
 Provider 
org.apache.hudi.org.apache.hadoop.hbase.regionserver.MetricsRegionServerSourceFactoryImpl
 not a subtype
        at java.util.ServiceLoader.fail(ServiceLoader.java:239)
        at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
        at 
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
        at 
org.apache.hudi.org.apache.hadoop.hbase.CompatibilitySingletonFactory.getInstance(CompatibilitySingletonFactory.java:61)
        ... 87 more (state=,code=0)
   


-- 
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