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

   **_Tips before filing an issue_**
   
   - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)? yes
   
   - 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**
   
   The docker demo doesn't work, I have tried it for different releases but all 
of them give me the same error within the adhoc-2 container.
   
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   - cloned repository, checked out on branch release-0.15.0
   - built hudi using maven
   - ran all the steps and encountered error at run_sync_tool in the adhoc 
container
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   The demo works
   
   **Environment Description**
   
   * Hudi version : 0.15
   
   * Spark version : 3.5.3
   
   * Hive version : 2.3.3
   
   * Hadoop version : 2.8.4
   
   * Storage (HDFS/S3/GCS..) : HDFS
   
   * Running on Docker? (yes/no) : yes
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   ```
   2025-03-10 05:15:46,708 INFO  [main] ddl.JDBCExecutor 
(JDBCExecutor.java:createHiveConnection(105)) - Successfully established Hive 
connection to  jdbc:hive2://hiveserver:10000
   2025-03-10 05:15:46,709 INFO  [main] hive.HiveSyncTool 
(HiveSyncTool.java:syncHoodieTable(171)) - Syncing target hoodie table with 
hive table(default.stock_ticks_cow). Hive metastore URL from 
HiveConf:thrift://hivemetastore:9083). Hive metastore URL from 
HiveSyncConfig:null, basePath :/user/hive/warehouse/stock_ticks_cow
   2025-03-10 05:15:46,709 INFO  [main] hive.HiveSyncTool 
(HiveSyncTool.java:syncHoodieTable(233)) - Trying to sync hoodie table 
stock_ticks_cow with base path /user/hive/warehouse/stock_ticks_cow of type 
COPY_ON_WRITE
   2025-03-10 05:15:46,928 INFO  [main] hive.metastore 
(HiveMetaStoreClient.java:close(564)) - Closed a connection to metastore, 
current connections: 0
   Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/parquet/format/TypeDefinedOrder
        at 
org.apache.parquet.format.converter.ParquetMetadataConverter.<clinit>(ParquetMetadataConverter.java:85)
        at 
org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:433)
        at 
org.apache.hudi.common.util.ParquetUtils.readMetadata(ParquetUtils.java:110)
        at 
org.apache.hudi.common.util.ParquetUtils.readSchema(ParquetUtils.java:242)
        at 
org.apache.hudi.common.util.ParquetUtils.readAvroSchema(ParquetUtils.java:264)
        at 
org.apache.hudi.common.table.TableSchemaResolver.fetchSchemaFromFiles(TableSchemaResolver.java:478)
        at 
org.apache.hudi.common.table.TableSchemaResolver.getTableParquetSchemaFromDataFile(TableSchemaResolver.java:262)
        at 
org.apache.hudi.common.table.TableSchemaResolver.getTableAvroSchemaFromDataFileInternal(TableSchemaResolver.java:115)
        at 
org.apache.hudi.common.table.TableSchemaResolver.getTableAvroSchemaFromDataFile(TableSchemaResolver.java:111)
        at 
org.apache.hudi.common.table.TableSchemaResolver.hasOperationField(TableSchemaResolver.java:408)
        at org.apache.hudi.util.Lazy.get(Lazy.java:54)
        at 
org.apache.hudi.common.table.TableSchemaResolver.getTableSchemaFromLatestCommitMetadata(TableSchemaResolver.java:215)
        at 
org.apache.hudi.common.table.TableSchemaResolver.getTableAvroSchemaInternal(TableSchemaResolver.java:183)
        at 
org.apache.hudi.common.table.TableSchemaResolver.getTableAvroSchema(TableSchemaResolver.java:136)
        at 
org.apache.hudi.common.table.ParquetTableSchemaResolver.getTableParquetSchema(ParquetTableSchemaResolver.java:63)
        at 
org.apache.hudi.sync.common.HoodieSyncClient.getStorageSchema(HoodieSyncClient.java:110)
        at 
org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:241)
        at org.apache.hudi.hive.HiveSyncTool.doSync(HiveSyncTool.java:189)
        at 
org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:177)
        at org.apache.hudi.hive.HiveSyncTool.main(HiveSyncTool.java:547)
   Caused by: java.lang.ClassNotFoundException: 
org.apache.parquet.format.TypeDefinedOrder
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 20 more
   ```
   
   


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