wsxGit opened a new issue #2830:
URL: https://github.com/apache/hudi/issues/2830
config is :
`props.put("hoodie.datasource.write.table.type", "COPY_ON_WRITE")
props.put(RECORDKEY_FIELD_OPT_KEY, "hudi_uuid")
props.put(PRECOMBINE_FIELD_OPT_KEY, "opttime")
props.put(PARTITIONPATH_FIELD_OPT_KEY, partitionColumn)
props.put("hoodie.insert.shuffle.parallelism", "10")
props.put("hoodie.upsert.shuffle.parallelism", "10")
props.put("hoodie.datasource.hive_sync.database", "fdm")
props.put("hoodie.datasource.hive_sync.table", tableName)
props.put("hoodie.datasource.hive_sync.enable", "true")
props.put("hoodie.datasource.hive_sync.partition_fields",
partitionColumn)
props.put("hoodie.datasource.hive_sync.jdbcurl", HIVE_URL)
props.put("hoodie.datasource.hive_sync.partition_extractor_class",
"org.apache.hudi.hive.MultiPartKeysValueExtractor")
props.put("hoodie.datasource.hive_sync.username", HIVE_USERNAME)
props.put(HoodieWriteConfig.TABLE_NAME, config.tableName)
props.put(DataSourceWriteOptions.HIVE_DATABASE_OPT_KEY, "fdm")
props.put(HoodieIndexConfig.BLOOM_INDEX_UPDATE_PARTITION_PATH, "true")
props.put(HoodieIndexConfig.INDEX_TYPE_PROP,
HoodieIndex.IndexType.GLOBAL_BLOOM.name())
mode(SaveMode.Append)
`
data is
+--------------------+------------------+----------------------+--------------------+-------------+-----------------+
|_hoodie_commit_seqno|_hoodie_record_key|_hoodie_partition_path|
_hoodie_file_name| opttime| hudi_uuid|
+--------------------+------------------+----------------------+--------------------+-------------+-----------------+
|20210407160004_26...| 100102_1366831027|
100102|0c00e34d-0d20-427...|1617782081000|100102_1366831027|
|20210407160004_26...| 100102_1366831027|
100102|0c00e34d-0d20-427...|1617782081000|100102_1366831027|
|20210407160004_26...| 100102_1366831027|
100102|0c00e34d-0d20-427...|1617782081000|100102_1366831027|
+--------------------+------------------+----------------------+--------------------+-------------+-----------------+
--
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]