ChiehFu opened a new issue, #10115:
URL: https://github.com/apache/hudi/issues/10115

   **_Tips before filing an issue_**
   
   - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)?
   
   - Join the mailing list to engage in conversations and get faster support at 
[email protected].
   
   - If you have triaged this as a bug, then file an 
[issue](https://issues.apache.org/jira/projects/HUDI/issues) directly.
   
   **Describe the problem you faced**
   Hello, Recently we migrated our datasets from Hudi 0.8 to Hudi 0.12.3 and 
started experiencing slowness in indexing stage in some tables during upserts.
   
   After looking into spark steps, we found out that there was one particular 
stage where Hudi set a very low value parallelism for a indexing stage (stage 
32 in the screenshoot) and ended up causing long duration and shuffle spill 
which further slowdown the stage. We set `hoodie.bloom.index.parallelism=2000` 
however, it doesn't seem to affect the parallelism of that particular stage.
   
   In Hudi 0.8, Hudi used to use the value we set in 
`hoodie.upsert.shuffle.parallelism` for parallelism for this stage, however it 
seems in Hudi 0.12, the parallelism is being calculated dynamically.
   
   Can you please help us understand if there is any Hudi configuration we 
should use to increase the parallelism for the stage?
   
   We also tried setting `hoodie.copyonwrite.record.size.estimate` to a very 
small value as it seems help forcing Hudi to use a larger parallelism for 
indexing initially, but it's very inconsistent as we still see small values 
being set for the stage across upsert jobs.
   
   
   
   **Environment Description**
   
   * Hudi version : 0.12.3
   
   * Spark version :  3.1.3
   
   * Hive version : 3.1.3
   
   * Hadoop version : 3.3.3
   
   * Storage (HDFS/S3/GCS..) : S3 
   
   * Running on Docker? (yes/no) : no
   * EMR: 6.10.0
   
   **Additional context**
   
   Hudi configs
   ```
   hoodie.metadata.enable: true
   hoodie.metadata.validate: true
   hoodie.cleaner.commits.retained: 72
   hoodie.keep.min.commits: 100
   hoodie.keep.max.commits: 150
   hoodie.datasource.write.payload.class: 
org.apache.hudi.common.model.DefaultHoodieRecordPayload
   hoodie.index.type: BLOOM
   hoodie.bloom.index.parallelism: 2000
   hoodie.copyonwrite.record.size.estimate: 1
   hoodie.metadata.enable: true
   hoodie.datasource.write.table.type: COPY_ON_WRITE
   hoodie.insert.shuffle.parallelism: 1500
   hoodie.datasource.write.operation: upsert
   hoodie.datasource.hive_sync.partition_extractor_class: 
org.apache.hudi.hive.MultiPartKeysValueExtractor
   hoodie.datasource.write.keygenerator.class: 
org.apache.hudi.keygen.ComplexKeyGenerator
   ```
   <img width="2313" alt="Screenshot 2023-11-15 at 8 20 39 PM" 
src="https://github.com/apache/hudi/assets/11819388/e0381e62-0690-4bce-8fe3-15f6590870bb";>
   
   <img width="2297" alt="Screenshot 2023-11-15 at 8 32 48 PM" 
src="https://github.com/apache/hudi/assets/11819388/3a481bb8-c6ff-456d-baca-b60b22788abf";>
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to