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 2022/03/01 09:50:30 UTC

[GitHub] [hudi] pmgod8922 commented on issue #4876: Atomic overwrite of multiple files

pmgod8922 commented on issue #4876:
URL: https://github.com/apache/hudi/issues/4876#issuecomment-1055231174


   > 
   
   hello  ask a question:
   1、I create sparksession 
   SparkSession sparkSession = SparkSession.builder().enableHiveSupport().appName("HudiTest")
   .config("spark.serializer","org.apache.spark.serializer.KryoSerializer")
   .getOrCreate();
   2.Configure hudi parameters
   optionMap.put(DataSourceWriteOptions.RECORDKEY_FIELD().key(),"uuid");
   optionMap.put(DataSourceWriteOptions.PRECOMBINE_FIELD().key(),"dt");
   optionMap.put(DataSourceWriteOptions.PARTITIONPATH_FIELD().key(),"dt");
   optionMap.put("hoodie.insert.shuffle.parallelism","10");
   optionMap.put("hoodie.upsert.shuffle.parallelism","10");
   optionMap.put("hoodie.datasource.write.operation","insert");
   optionMap.put("hoodie.parquet.small.file.limit","94857600");
   optionMap.put("hoodie.parquet.max.file.size","200829120");
   optionMap.put("hoodie.merge.allow.duplicate.on.inserts","true");
   optionMap.put(HoodieWriteConfig.TBL_NAME.key(),"my_table_B");
   3.Output Data To Hdfs
   4.**Found small files not merged**
   
   Can you help me to see if the configuration is missing? 


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