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 2022/03/15 10:58:21 UTC

[GitHub] [hudi] liujinhui1994 removed a comment on issue #5046: [SUPPORT] Structured streaming MOR writes to hudi, the task will not be aborted after failure

liujinhui1994 removed a comment on issue #5046:
URL: https://github.com/apache/hudi/issues/5046#issuecomment-1067845624


   dataFrame.writeStream().format("org.apache.hudi")
           .option("hoodie.datasource.write.recordkey.field", cfg.pk)
           .option("hoodie.datasource.write.partitionpath.field", DS_)
           .option("hoodie.parquet.small.file.limit", 128 * 1024 * 1024)
           .option("hoodie.datasource.hive_sync.partition_fields", DS_)
           .option("hoodie.deltastreamer.keygen.timebased.timestamp.type", "DATE_STRING")
           .option("hoodie.upsert.shuffle.parallelism", cfg.parallelism)
           .option("hoodie.datasource.write.operation", "upsert")
           .option("hoodie.datasource.write.precombine.field", cfg.precombineKey)
           .option("hoodie.datasource.write.keygenerator.class", "org.apache.hudi.keygen.ComplexKeyGenerator")
           .option("hoodie.datasource.hive_sync.enable", cfg.enableMetaSync)
           .option("hoodie.datasource.write.table.type", cfg.tableType)
           .option("hoodie.embed.timeline.server", false)
           .option("hoodie.datasource.write.streaming.ignore.failed.batch", false)
           .option("hoodie.datasource.hive_sync.skip_rt_suffix", true)
           .option("hoodie.cleaner.commits.retained", cfg.retainCommit)
           .option("hoodie.keep.min.commits", cfg.retainCommit + 10)
           .option("hoodie.keep.max.commits", cfg.retainCommit + 20)
           .option("hoodie.clean.async", true)
           .option("hoodie.table.name", getIncHoodieTableName(cfg.dataBase, cfg.tableName, cfg.model))
           .option("hoodie.datasource.write.payload.class","org.apache.hudi.common.model.DefaultHoodieRecordPayload")
           .option("hoodie.payload.event.time.field",_TS)
           .option("hoodie.payload.ordering.field",_TS)
           .option("hoodie.finalize.write.parallelism", cfg.parallelism)
           .option("hoodie.rollback.parallelism", cfg.parallelism)
           .option(HoodieMetadataConfig.ENABLE.key(), false)
           .options(map)
           .option("checkpointLocation", getIncCheckpointPath(cfg.dataBase, cfg.targetBasePath, cfg.tableName, cfg.model))
           .outputMode(OutputMode.Append())
           .trigger(Trigger.ProcessingTime(cfg.triggerInterval + " second"))
           .start(CommonUtil.getTargetPathToInc(cfg.dataBase, cfg.tableName, cfg.targetBasePath, cfg.model))
           .awaitTermination();


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org