hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[HUDI-4281] Using hudi to build a large number of tables in spark on hive causes OOM

Open zhangrenhua opened this issue 2 years ago • 4 comments

The Hive Client adopts the singleton mode to avoid the oom caused by the IsolatedClientLoader object not being released.

Tips

  • Thank you very much for contributing to Apache Hudi.
  • Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.

What is the purpose of the pull request

HUDI-4281

(For example: This pull request adds quick-start document.)

Brief change log

(for example:)

  • Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request

(Please pick either of the following options)

This pull request is a trivial rework / code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end.
  • Added HoodieClientWriteTest to verify the change.
  • Manually verified the change by running a job locally.

Committer checklist

  • [ ] Has a corresponding JIRA in PR title & commit

  • [ ] Commit message is descriptive of the change

  • [ ] CI is green

  • [ ] Necessary doc changes done or have another open PR

  • [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

zhangrenhua avatar Jun 19 '22 12:06 zhangrenhua

were you able to test this patch out for large no of tables?

nsivabalan avatar Jun 23 '22 18:06 nsivabalan

were you able to test this patch out for large no of tables?

Unit tests have been added, thank you.

zhangrenhua avatar Jun 24 '22 13:06 zhangrenhua

@hudi-bot run azure

yihua avatar Sep 17 '22 21:09 yihua

have rebased w/ latest master. once CI is green, we can land.

nsivabalan avatar Oct 20 '22 04:10 nsivabalan

rebased w/ latest master.

nsivabalan avatar Oct 23 '22 05:10 nsivabalan

rebased w/ latest master.

I have rebased onto master, Please check thank you!

zhangrenhua avatar Oct 23 '22 06:10 zhangrenhua

CI report:

  • d9efa30182341da4b73f28825d206d32e9f0f81e Azure: SUCCESS
Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

hudi-bot avatar Oct 23 '22 09:10 hudi-bot

rebased w/ latest master.

PULL REQUEST TEMPLATE was updated.

zhangrenhua avatar Oct 23 '22 09:10 zhangrenhua