You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/08/25 11:27:59 UTC

[GitHub] [hudi] Yogashri12 commented on issue #2017: multi-level partition

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:
users@infra.apache.org