HBase Backup And Restore - Linux Foundation Events

1y ago
5 Views
1 Downloads
542.82 KB
18 Pages
Last View : 25d ago
Last Download : 3m ago
Upload by : Francisco Tran
Transcription

HBase Backup and Restore Ted Yu Hortonworks Inc. 2014 Page 1

About myself Been working on HBase for over 6 years HBase committer / PMC Senior Staff Engineer at Hortonworks Hortonworks Inc. 2014 Page 2

HBase Backup – Why We Need It Database needs disaster recovery tool Previously users can perform snapshot However, execution cost may be high – flush across region servers is involved There was no incremental snapshot – whole dataset is captured by snapshot Hortonworks Inc. 2014 Page 3

HBase Backup Types Full backup – foundation for incremental backups Incremental backup – can be periodic to capture changes over time Supports table level backup Hortonworks Inc. 2014 Page 4

Backup Strategy Intra-cluster backup is appropriate for testing Hortonworks Inc. 2014 Page 5

Backup Strategy: Dedicated HDFS Cluster backup on a separate HDFS archive cluster Hortonworks Inc. 2014 Page 6

Backup Strategy: Cloud or a Storage Vendor vendor can be a public cloud provider or a storage vendor who uses a Hadoop compatible file system Hortonworks Inc. 2014 Page 7

Best Practices for Backup-and-Restore Secure a full backup image first Formulate a restore strategy and test it Define and use backup sets for groups of tables that are logical subsets of the entire dataset Document the backup-and-restore strategy, and ideally log information about each backup Hortonworks Inc. 2014 Page 8

Creating/Maintaining Backup Image Run the following command as hbase superuser: hbase backup create {{ full incremental } {backup root path} {[-t tables] [-set backup set name]}} [[-silent] [-w number of workers] [-b bandwidth per worker]] Hortonworks Inc. 2014 Page 9

Using Backup Sets Reduces the amount of repetitive input of table names. “hbase backup set add” command. You can have multiple backup sets Backup set can be used in the “hbase backup create” or “hbase backup restore” commands Hortonworks Inc. 2014 Page 10

Restoring a Backup Image You can only restore on a live HBase cluster Run the following command as hbase superuser hbase restore {[-set backup set name] [backup root path] [backupId] [tables]} [[table mapping] [-overwrite] [-check]] hbase restore /tmp/backup incremental backupId 1467823988425 mytable1,mytable2 overwrite Hortonworks Inc. 2014 Page 11

Incremental backups Use Write Ahead Logs (WALs) to capture the data changes since the previous backup Log roll is executed across all RegionServers All the WAL files from incremental backups between the last full backup and the incremental backup are converted to HFiles A process similar to the DistCp tool is used to move the source backup files to the target file system Hortonworks Inc. 2014 Page 12

Restore The full backup is restored from the full backup image. HFileSplitter job will collect all HFile(s), split them into new region boundaries HBase Bulk Load utility automatically imports the HFiles as restored data in the table. Hortonworks Inc. 2014 Page 13

Bulk load support Bulk loaded Hfiles are recorded in backup table at the end of bulk load During incremental backup, these Hfiles are copied to backup destination During restore, these Hfiles are loaded into target table Hortonworks Inc. 2014 Page 14

Limitations of the Backup-Restore Only one active backup session is supported. HBASE16391 will introduce multiple-backup sessions support Both backup and restore can’t be canceled while in progress. (HBASE-15997,15998) Single backup destination only supported. HBASE15476 There is no merge for incremental images (HBASE14135) Only superuser (hbase) is allowed to perform backup/restore Hortonworks Inc. 2014 Page 15

Credit Richard Ding Vladimir Rodionov Hortonworks Inc. 2014 Page 16

Q/A Hortonworks Inc. 2014 Page 17

Thank you. Hortonworks Inc. 2014 Page 18

Limitations of the Backup-Restore Only one active backup session is supported. HBASE-16391 will introduce multiple-backup sessions support Both backup and restore can't be canceled while in progress. (HBASE-15997,15998) Single backup destination only supported. HBASE-15476 There is no merge for incremental images (HBASE-14135)

Related Documents:

Active Directory Backup and Restore 1. 2. In the current market, we're able to distinguish two types of solutions for Active Directory backup and restore: Host-based backup and restore solutions Agent-based backup and restore solutions The distinction is clearly on the way the backup is created and may be restored. Obviously,

HBase Standalone is a mode which allow you to get rid of HDFS and to test HBase before deploying in a cluster, It is not production oriented. Installing HBase in standalone is extremely simple. First you have to download the HBase archive named hbase

Linux in a Nutshell Linux Network Administrator’s Guide Linux Pocket Guide Linux Security Cookbook Linux Server Hacks Linux Server Security Running Linux SELinux Understanding Linux Network Internals Linux Books Resource Center linux.oreilly.comis a complete catalog of O’Reilly’s books on Linux and Unix and related technologies .

Engagement Database Backup & Restore Utility. Your third party backup and restore software is unable to restore a single binder that has been deleted from the Central File Room. Also, the Database Backup & Restore Utility is the best tool to assist you in migrating the ProSystem fx Engagement Administrator module from one server to another.

Features Acronis Cyber Protect Cloud Backup Workstations, Servers (Windows, Linux, Mac) backup PAYG Virtual machine backup PAYG File backup PAYG Image backup PAYG Standard applications backup (Microsoft 365, Google Workspace, Microsoft Exchange, Microsoft SQL) PAYG Network shares backup PAYG Backup to local storage PAYG Backup to cloud storage PAYG

01/02/2020 TP4 - HBase - TP Big Data 127.1:8000/tp4/ 5/ 18 Autres caractéristiques de HBase: HBase n'a pas de schéma pr édéni, sauf qu'il faut dénir les familles de colonnes à la cr éation des tables, car elles r eprésentent l'organisation physique des données HBase est décrite comme étant un magasin de données clef/v aleur, où la

Backups must be initiated by the user; there is no automatic backup option. The backup files are stored in the root directory of a USB memory stick. The restore function will only restore the latest backup file. The system does not have file selection option. No controller dependency is used when restoring a backup, i.e. the restore .

Plays are sometimes written from scratch; others are well known. KS3 Dramatic Society Club . of those students currently studying for ABRSM theory exams. Bring your lunch and have a chat. School Choir Large mixed (male and female voices) choir open to all years and abilities, which prepares for major musical events. Senior Jazz Combo Wild and unpredictable band of senior musicians in years .