berniedurfee-renaissance opened a new issue, #8224:
URL: https://github.com/apache/hudi/issues/8224

   I'm running Deltastreamer in AWS EMR Serverless and it seems that 
Deltastreamer is ignoring `hoodie.datasource.write.precombine.field` in my 
config file.
    
   **To Reproduce**
   
   Setup a source bucket of parquet files (Mine are from AWS DMS): 
`s3://my-lakehouse/dms-output-raw/schema_1/table_1/`
   
   Add a properties file 
(`s3://my-lakehouse/deltastreamer-config/deltastreamer.properties`): 
   ```
   hoodie.schema.on.read.enable = true
   hoodie.datasource.write.recordkey.field = origin_schema,id
   hoodie.datasource.write.precombine.field = updated_at
   hoodie.datasource.write.partitionpath.field = origin_schema
   hoodie.datasource.write.keygenerator.class = 
org.apache.hudi.keygen.ComplexKeyGenerator
   
hoodie.deltastreamer.source.dfs.root=s3://my-lakehouse/dms-output-raw/schema_1/table_1/
   ```
   
   Submit a job to EMR Serverless 6.10.0
   - Script Location: 
`s3://my-lakehouse/deltastreamer-jar/hudi-utilities-slim-bundle_2.12-0.13.0.jar`
   - Main Class: `org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer`
   - Script arguments
   ```
   
["--table-type","COPY_ON_WRITE","--target-base-path","s3://my-lakehouse/deltastreamer-out","--target-table","table1","--source-class","org.apache.hudi.utilities.sources.ParquetDFSSource","--props","s3://my-lakehouse/deltastreamer-config/deltastreamer.properties"]
   ```
   - Properties key 1: `spark.serializer` = 
`org.apache.spark.serializer.KryoSerializer`
   - Properties key 2: `spark.jars` = 
`s3://ec-lakehouse-qa/deltastreamer-jar/hudi-spark3-bundle_2.12-0.13.0.jar`
   
   Everything else is default. I tried 0.12 and 0.13, but same result.
   
   **Expected behavior**
   
   Rows from source are upserted to destination.
   
   Deltastreamer fails and when I look at 
`/my-lakehouse/deltastreamer-out/mytable1/.hoodie/hoodie.properties` I can see 
that `hoodie.table.precombine.field=ts`. That should be 
`hoodie.table.precombine.field=updated_at` because it's what's in the 
properties file, right?
   
   **Environment Description**
   
   * Hudi version : 0.13
   
   * Spark version : 3.3.1
   
   * Hive version : Not sure for EMR Serverless 6.10.0
   
   * Hadoop version : Not sure for EMR Serverless 6.10.0
   
   * Storage (HDFS/S3/GCS..) : S3
   
   * Running on Docker? (yes/no) : EMR Serverless 6.10.0
   
   
   **Stacktrace**
   
   ```Add the stacktrace of the error.```
   
   ```Job failed, please check complete logs in configured logging destination. 
ExitCode: 1. Last few exceptions: Caused by: 
org.apache.hudi.exception.HoodieException: ts(Part -ts) field not found in 
record. Acceptable fields were :[xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, 
xxx, xxx, created_at, updated_at, origin_schema, origin_table] Exception in 
thread "main" org.apache.spark.SparkException: Job aborted due to stage 
failure: Task 0 in stage 2.0 failed 4 times, most recent failure: Lost task 0.3 
in stage 2.0 (TID 5) ([2600:1f13:4df:c101:e7b0:42bd:e2f6:f474] executor 1): 
org.apache.hudi.exception.HoodieException: ts(Part -ts) field not found in 
record. Acceptable fields were :[xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, 
xxx, xxx, created_at, updated_at, origin_schema, origin_table] Caused by: 
org.apache.hudi.exception.HoodieException: ts(Part -ts) field not found in 
record. Acceptable fields were :[xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, 
xxx, xxx, created_at, updated_at, or
 igin_schema, origin_table] org.apache.spark.SparkException: Job aborted due to 
stage failure: Task 0 in stage 2.0 failed 4 times, most recent failure: Lost 
task 0.3 in stage 2.0 (TID 5) ([2600:1f13:4df:c101:e7b0:42bd:e2f6:f474] 
executor 1): org.apache.hudi.exception.HoodieException: ts(Part -ts) field not 
found in record. Acceptable fields were :[xxx, xxx, xxx, xxx, xxx, xxx, xxx, 
xxx, xxx, xxx, xxx, created_at, updated_at, origin_schema, origin_table] 
23/03/17 20:13:39 ERROR HoodieDeltaStreamer: Got error running delta sync once. 
Shutting down...```


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