abhaygupta3390 commented on issue #1371: [SUPPORT] Upsert for S3 Hudi dataset 
with large partitions takes a lot of time in writing
URL: https://github.com/apache/incubator-hudi/issues/1371#issuecomment-595059123
 
 
   @vinothchandar No, I am using the df write api. Sample code snippet:
   ```
   writeDF.write.format("org.apache.hudi")
         .options(getQuickstartWriteConfigs)
         .option(PRECOMBINE_FIELD_OPT_KEY, "ts_ms")
         .option(RECORDKEY_FIELD_OPT_KEY, "id")
         .option(TABLE_NAME, <tableName>)
         .option(KEYGENERATOR_CLASS_OPT_KEY, 
classOf[ComplexKeyGenerator].getName)
         .option(PARTITIONPATH_FIELD_OPT_KEY, "partCol1,partCol2,partCol3")
         .option(HIVE_SYNC_ENABLED_OPT_KEY, "true")
         .option(HIVE_DATABASE_OPT_KEY, <hiveDB>)
         .option(HIVE_TABLE_OPT_KEY, <hiveTableName>)
         .option(HIVE_URL_OPT_KEY, <hiveUrl>)
         .option(HIVE_PARTITION_EXTRACTOR_CLASS_OPT_KEY, 
classOf[MultiPartKeysValueExtractor].getName)
         .option(HIVE_PARTITION_FIELDS_OPT_KEY, "partCol1,partCol2,partCol3")
         .option(OPERATION_OPT_KEY, UPSERT_OPERATION_OPT_VAL)
         .mode(Append)
         .save(<s3Location>)
   ```

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


With regards,
Apache Git Services

Reply via email to