eisig commented on issue #779: HoodieDeltaStreamer may install duplicate record?
URL: https://github.com/apache/incubator-hudi/issues/779#issuecomment-510823736
 
 
   @vinothchandar I
   delete the folder and try again, It heppened again. 
   Here is my configs:
   ```
    - --storage-type
       - MERGE_ON_READ
       - --source-class
       - com.uber.hoodie.utilities.sources.JsonKafkaSource 
       - --source-ordering-field
       - create_date 
       - --target-table 
       - t_order_mor
       - --target-base-path
       - s3://xxx/t_order_mor03
       - --props
       - s3://xxx/kafka-source-mor.properties 
       - --schemaprovider-class 
       - com.uber.hoodie.utilities.schema.FilebasedSchemaProvider 
       - --key-generator-class 
       - com.uber.hoodie.utilities.keygen.TimestampBasedKeyGenerator 
       - --continuous
       - --enable-hive-sync
       - --source-limit
       - '10000000'
       # - --disable-compaction
   ```
   ```
   hoodie.consistency.check.enabled=true
   hoodie.embed.timeline.server=true
   hoodie.filesystem.view.type=EMBEDDED_KV_STORE
   
   hoodie.upsert.shuffle.parallelism=4
   hoodie.insert.shuffle.parallelism=4
   hoodie.bulkinsert.shuffle.parallelism=4
   
   # Key fields, for kafka example
   hoodie.datasource.write.recordkey.field=id
   hoodie.datasource.write.partitionpath.field=create_date
   hoodie.deltastreamer.keygen.timebased.timestamp.type=DATE_STRING
   hoodie.deltastreamer.keygen.timebased.input.dateformat=yyyy-MM-dd HH:mm:ss
   hoodie.deltastreamer.keygen.timebased.output.dateformat=yyyy
   # Schema provider props (change to absolute path based on your installation)
   hoodie.deltastreamer.schemaprovider.source.schema.file=s3://xxx/schema.avsc
   hoodie.deltastreamer.schemaprovider.target.schema.file=s3://xxxx/schema.avsc
   
   # Kafka Source
   hoodie.deltastreamer.source.kafka.topic=xx
   
   #Kafka props
   metadata.broker.list=xxx:9092
   auto.offset.reset=smallest
   
   hoodie.datasource.hive_sync.database=test
   hoodie.datasource.hive_sync.table=t_order_mor03
   hoodie.datasource.hive_sync.username=hive
   hoodie.datasource.hive_sync.jdbcurl=jdbc:hive2://xxxx:10000
   hoodie.datasource.hive_sync.partition_fields=year
   
hoodie.datasource.hive_sync.partition_extractor_class=com.xhqb.hoodie.utilities.hive.SimplePartitionValueExtractor
   
   ```
   

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


With regards,
Apache Git Services

Reply via email to