admin管理员组

文章数量:1125590

When Pyspark is used to write data to the hudi table and the options content is as follows:

hudi_options = {   'hoodie.datasource.write.keygenerator.class':'org.apache.hudi.keygen.ComplexKeyGenerator', 
'hoodie.datasource.hive_sync.database': 'dingpan_test_mrs', 
'hoodie.table.name': 'dwd_design_designasset_function_offline_wide', 'hoodie.datasource.write.table.name': 'dwd_design_designasset_function_offline_wide', 'hoodie.datasource.write.recordkey.field':'id', 'hoodie.datasource.write.precombine.field': 'modified_date', 'hoodie.datasource.write.table.type':'COPY_ON_WRITE', 'hoodie.datasource.write.operation': 'upsert', 
'hoodie.upsert.shuffle.parallelism': 1, 
'hoodie.insert.shuffle.parallelism': 1 
} 

new_data.write
.format("hudi")
.options(**hudi_options)
.mode("append")
.save(obs_path)

the error message:

Could not load key generator class org.apache.hudi.keygen.ComplexKeyGenerator.

How should I adjust my code?Please

本文标签: pyspark Could not load key generator class orgapachehudikeygenComplexKeyGeneratorStack Overflow