Yogashri12 commented on issue #2017:
URL: https://github.com/apache/hudi/issues/2017#issuecomment-679967819


   how to use ComplexKeyGenerator in pyspark.
   hudi_options = {
   'hoodie.table.name': tableName,
   'hoodie.datasource.write.recordkey.field': 'ID',
   'hoodie.datasource.write.table.name': tableName,
   'hoodie.datasource.write.operation': 'upsert',
   'hoodie.datasource.write.precombine.field': 'ID',
   'hoodie.upsert.shuffle.parallelism': 2,
   'hoodie.insert.shuffle.parallelism': 2,
   'hoodie.datasource.write.keygenerator.class': 
'org.apache.hudi.ComplexKeyGenerator',
   'hoodie.datasource.write.partitionpath.field':'year/month'
   }
   throws an error
   py4j.protocol.Py4JJavaError: An error occurred while calling o48.save.
   : java.io.IOException: Could not load key generator class 
org.apache.hudi.ComplexKeyGenerator
   
   sry i am new to apache hudi,so can you help me out without any hesitation.
   
   thanks in advance. 


----------------------------------------------------------------
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:
[email protected]


Reply via email to