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 2021/04/15 09:03:07 UTC

[GitHub] [hudi] wsxGit opened a new issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

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



[GitHub] [hudi] n3nash commented on issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
n3nash commented on issue #2830:
URL: https://github.com/apache/hudi/issues/2830#issuecomment-854407243


   @wsxGit Thank for confirming! Closing this issue now. 


-- 
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



[GitHub] [hudi] nsivabalan commented on issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #2830:
URL: https://github.com/apache/hudi/issues/2830#issuecomment-821764581


   Is it possible to give us some reproducible code snippet.  also, can you clarify if you are seeing duplicates in both spark ds/spark sql and hive or just in hive. 


-- 
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



[GitHub] [hudi] n3nash commented on issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
n3nash commented on issue #2830:
URL: https://github.com/apache/hudi/issues/2830#issuecomment-826559498


   @wsxGit Can you help answer @nsivabalan question so we can help triage your issue ?


-- 
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



[GitHub] [hudi] n3nash closed issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
n3nash closed issue #2830:
URL: https://github.com/apache/hudi/issues/2830


   


-- 
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



[GitHub] [hudi] nsivabalan commented on issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #2830:
URL: https://github.com/apache/hudi/issues/2830#issuecomment-823752462


   oh, I see you are using GLOBAL_BLOOM as your index. Can you tell us which version of hudi are you using and other env details. 


-- 
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



[GitHub] [hudi] n3nash closed issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
n3nash closed issue #2830:
URL: https://github.com/apache/hudi/issues/2830


   


-- 
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



[GitHub] [hudi] wsxGit commented on issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
wsxGit commented on issue #2830:
URL: https://github.com/apache/hudi/issues/2830#issuecomment-835003864


   I have found reason ,hoodie.datasource.write.operation use UPSERT  sloved the issue
   
   > oh, I see you are using GLOBAL_BLOOM as your index. Can you tell us which version of hudi are you using and other env details.
   
   


-- 
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



[GitHub] [hudi] nsivabalan edited a comment on issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
nsivabalan edited a comment on issue #2830:
URL: https://github.com/apache/hudi/issues/2830#issuecomment-821764581


   @wsxGit: Is it possible to give us some reproducible code snippet.  also, can you clarify if you are seeing duplicates in both spark ds/spark sql and hive or just in hive. 


-- 
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



[GitHub] [hudi] n3nash commented on issue #2830: [SUPPORT]same _hoodie_record_key has duplicates data

Posted by GitBox <gi...@apache.org>.
n3nash commented on issue #2830:
URL: https://github.com/apache/hudi/issues/2830#issuecomment-854407243


   @wsxGit Thank for confirming! Closing this issue now. 


-- 
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