JosefinaArayaTapia commented on issue #5389:
URL: https://github.com/apache/hudi/issues/5389#issuecomment-1130096584

   Hi @xushiyan 
   
   I have presented the case to aws support and they sent me the following 
configuration which solved my problem.
   Also now use EMR 6.4.0
   
   
   ```
   #NewOptions - Change here is used ComplexKeyGenerator instead of 
SImpleKeyGenerator, and used more than one column in recordkeyfield
   
   hudiOptions = {
   'hoodie.datasource.write.precombine.field':'last_update_time',
   'hoodie.datasource.write.recordkey.field': 'id,creation_date', 
   'hoodie.table.name': 'newhuditest0439', 
   'hoodie.datasource.hive_sync.mode':'hms', 
   'hoodie.datasource.write.hive_style_partitioning':'true', 
   'hoodie.compact.inline.max.delta.commits':1, 
   'hoodie.compact.inline.trigger.strategy':'NUM_COMMITS', 
   'hoodie.datasource.compaction.async.enable':'false', 
   'hoodie.datasource.write.table.type':'COPY_ON_WRITE', 
   'hoodie.index.type':'GLOBAL_BLOOM', 
   'hoodie.datasource.hive_sync.partition_extractor_class': 
'org.apache.hudi.hive.MultiPartKeysValueExtractor', 
   
'hoodie.datasource.write.keygenerator.class':'org.apache.hudi.keygen.ComplexKeyGenerator',
 
   'hoodie.bloom.index.filter.type':'DYNAMIC_V0', 
   'hoodie.bloom.index.update.partition.path': 'false', 
   'hoodie.datasource.hive_sync.table':'newhuditest0439', 
   'hoodie.datasource.hive_sync.enable':'true', 
   'hoodie.datasource.write.partitionpath.field':'creation_date', 
   'hoodie.datasource.hive_sync.partition_fields':'creation_date', 
   'hoodie.datasource.hive_sync.database':'default', 
   'hoodie.datasource.hive_sync.support_timestamp': 'true'
   } 
   
   ```
   


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