You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "chandu-1101 (via GitHub)" <gi...@apache.org> on 2023/07/10 10:36:07 UTC

[GitHub] [hudi] chandu-1101 commented on issue #9141: [SUPPORT] unable to write dataframe into s3. Getting: HoodieSparkSqlWriter$: UPSERT failed with errors

chandu-1101 commented on issue #9141:
URL: https://github.com/apache/hudi/issues/9141#issuecomment-1628679634

   Any update? is the above explanation missing something important?  If i modify the above program to the below, the program returns in few seconds (the parquet file in the src is 40GB). When i go to the destination i see some `.hoodi` folders nothing more. 
   
   ```
       snapshotDf3.write.format("hudi")
   //      .options(getQuickstartWriteConfigs)
         .option(DataSourceWriteOptions.OPERATION.key(), DataSourceWriteOptions.BOOTSTRAP_OPERATION_OPT_VAL)
         .option(DataSourceWriteOptions.PRECOMBINE_FIELD_OPT_KEY, "cdc_pk")
         .option(DataSourceWriteOptions.RECORDKEY_FIELD_OPT_KEY, "cdc_oid")
         .option(DataSourceWriteOptions.PARTITIONPATH_FIELD_OPT_KEY, "hash")
         .option(HoodieTableConfig.BASE_FILE_FORMAT.key(), HoodieFileFormat.PARQUET.name())
         .option(HoodieBootstrapConfig.BASE_PATH.key(), "s3://bucket/snapshots-hudi/ge11/snapshot")
   //      .option(HoodieWriteConfig.KEYGENERATOR_CLASS_NAME.key(), "org.apache.hudi.keygen.NonpartitionedKeyGenerator")
         .option(TABLE_NAME, "GE11")
         .mode(SaveMode.Overwrite)
         .save("s3://bucket/snapshots-hudi/ge11/snapshot");
   ```


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