Documentation
ODP 3.3.6.3-1
Release Notes
What is ODP
Installation
Component User guide and Installation Instructions
Upgrade Instructions
Downgrade Instructions
Reference Guide
Security Guide
Troubleshooting Guide
Uninstall ODP
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Back Up and Restore Kudu Tables
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Kudu tables can be backed up and restored using Spark 3. This process requires a Kudu backup JAR file distributed with Kudu.
Prerequisites
Before performing a backup, ensure the following:
- ODP version
Bash
odp-select --version- Backup location – HDFS path where backups will be stored.
- Permissions – The Kudu user must have permission to submit Spark jobs.
- Tables to back up – You can specify one or multiple tables at the same time.
- Kudu backup JAR – Located at:
Bash
kudu-backup3_2.12-1.17.0.$(odp-select --version)-all.jar- List of Kudu masters – Required to connect to the cluster.
Back Up Tables
Run the following Spark command to back up one or more tables:
Bash
spark-submit --class org.apache.kudu.backup.KuduBackup /usr/odp/$(odp-select --version)/kudu/jars/kudu-backup3_2.12-1.17.0.3.3.6.3-1-all.jar \ --kuduMasterAddresses $YOUR_KUDU_MASTERS \ --rootPath hdfs:////kudu_backups \ --failOnFirstError true \ foo barParameters:
--kuduMasterAddresses– Comma-separated list of Kudu master addresses.--rootPath– HDFS path where backups will be stored.--failOnFirstError– Stops the backup if any table fails.
Restore Tables
Restoring from a backup requires similar inputs as backing up, but with a few key differences.
The --class org.apache.kudu.backup.KuduRestore option specifies that the operation restores tables instead of backing them up.
Bash
spark-submit --class org.apache.kudu.backup.KuduRestore /usr/odp/$(odp-select --version)/kudu/jars/kudu-backup3_2.12-1.17.0.3.3.6.2-1-all.jar \ --kuduMasterAddresses $YOUR_KUDU_MASTERS \ --rootPath hdfs:///kudu_backups \ --failOnFirstError true \ foo barParameters:
--class org.apache.kudu.backup.KuduRestore→ Runs the restore job.--kuduMasterAddresses→ Comma-separated list of Kudu master addresses.--rootPath→ HDFS path where the backups are stored.--failOnFirstError→ Ensures the restore stops on the first encountered error.foo bar→ Placeholder arguments; replace with your specific restore targets.
For more details, see Apache Documentation.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on Jan 12, 2026
Was this page helpful?
Next to read:
Add a Kudu MasterDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message