Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HUDI-757] Added hudi-cli command to export metadata of Instants. #1476

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

prashantwason
Copy link
Member

What is the purpose of the pull request

Added hudi-cli command to export metadata of Instants.

Brief change log

Added a new command to hudi-cli

Verify this pull request

This change can be verified by running hudi-cli, connecting to a HUDI table and running the following command:

hudi:db.table-> export instants --localFolder /tmp/dump --limit 5 --actions clean,rollback,commit --desc false

After this, 5 instant files should have been created in the /tmp/dump folder.

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.

@n3nash n3nash self-assigned this Apr 1, 2020
Copy link
Contributor

@n3nash n3nash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left 1 comment, rest looks fine to me @prashantwason

@prashantwason
Copy link
Member Author

I have addressed all you review comments.

@prashantwason
Copy link
Member Author

Currently the export writes out binary avro records for instants read from the metadata archive files. This beats the purpose of exporting for debugging. I am updating the code to write out json formatted records instead for all exported instants.

@prashantwason prashantwason force-pushed the HUDI-757 branch 2 times, most recently from 63d8c1f to 1405db4 Compare April 8, 2020 19:16
@prashantwason
Copy link
Member Author

Updated to write out instant metadata in json format so its easy to use CLI tools. Tested using a few HUDI datasets and works good.

@vinothchandar
Copy link
Member

CI actually passed.. when I click on the link.. may be kick the job again by making an empty commit/amend

@prashantwason prashantwason force-pushed the HUDI-757 branch 2 times, most recently from 7279117 to 0e94b76 Compare April 13, 2020 19:13
@prashantwason
Copy link
Member Author

Fixed the merge conflict and pushed again.

Example:
hudi:db.table-> export instants --localFolder /tmp/ --limit 5 --actions clean,rollback,commit --desc false
@n3nash
Copy link
Contributor

n3nash commented Apr 21, 2020

LGTM

@n3nash n3nash merged commit 62bd3e7 into apache:master Apr 21, 2020
@prashantwason prashantwason deleted the HUDI-757 branch September 4, 2020 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants