devanshguptatrepp commented on issue #7261:
URL: https://github.com/apache/hudi/issues/7261#issuecomment-1323243202
Here is the hoodie config
```
def getCommonConfig(primaryKey: String, tableName: String, dbName: String,
combineKey: String, hudiModeType: String,master:String) = {
var hudiParam = Map[String, String]()
hudiParam = hudiParam + ("hoodie.upsert.shuffle.parallelism" -> "64")
hudiParam = hudiParam + ("hoodie.datasource.write.operation" -> "upsert")
hudiParam = hudiParam + ("hoodie.cleaner.policy" -> "KEEP_LATEST_COMMITS")
hudiParam = hudiParam + ("hoodie.cleaner.commits.retained" -> "1”)
hudiParam = hudiParam + (DataSourceWriteOptions.TABLE_TYPE.key() ->
DataSourceWriteOptions.COW_TABLE_TYPE_OPT_VAL)
hudiParam = hudiParam + (DataSourceWriteOptions.ENABLE_ROW_WRITER.key() ->
classOf[ComplexKeyGenerator].getCanonicalName)
hudiParam = hudiParam + (DataSourceWriteOptions.OPERATION.key() ->
DataSourceWriteOptions.BULK_INSERT_OPERATION_OPT_VAL)
hudiParam = hudiParam + ("className" -> "org.apache.hudi")
hudiParam = hudiParam + ("hoodie.datasource.hive_sync.use_jdbc" -> "false”)
hudiParam = hudiParam + ("hoodie.datasource.write.recordkey.field" ->
primaryKey)
hudiParam = hudiParam + (DataSourceWriteOptions.PRECOMBINE_FIELD.key() ->
primaryKey)
hudiParam = hudiParam + ("hoodie.table.name" -> tableName)
hudiParam = hudiParam + ("hoodie.consistency.check.enabled" -> "true”)
hudiParam = hudiParam + ("hoodie.datasource.hive_sync.database" -> dbName)
hudiParam = hudiParam + ("hoodie.datasource.hive_sync.table" -> tableName)
hudiParam = hudiParam + ("hoodie.datasource.hive_sync.enable" -> "true”)
hudiParam = hudiParam +
("hoodie.datasource.hive_sync.partition_extractor_class" ->
"org.apache.hudi.hive.NonPartitionedExtractor”)
hudiParam = hudiParam + ("hoodie.datasource.write.keygenerator.class" ->
"org.apache.hudi.keygen.NonpartitionedKeyGenerator”)
hudiParam
}
--
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]