Joke Collection Website - Bulletin headlines - Hive data backup and recovery
Hive data backup and recovery
1, backup the table data in Hive to disk. ?
Backup example:
The above statement shows that the data in the src_companyinfo table is separated by | and backed up to the directory/root/GRC _ bigdata/backup/src _ companyinfo. ?
The directory structure after backup is as follows:
The directory structure of src_xtbillmx20 13_st browsed in Hue is as follows:?
As can be seen from the above results, the number of output data files is not necessarily the same as the number of files stored in Hive.
2. Restore the files on the disk to Hive. ?
First, execute the table building script in hive:
Then execute the following import command in Hive:
3. It takes 55,386 seconds to back up 46 tables in Hive and one ***552GB data to Linux file system, which takes about 65,438+05.4 hours. ?
It takes 4 12 17 seconds to recover the above data from the Linux file system, and it takes about 1 1.4 hours.
original text
- Previous article:Does the school recruit iron?
- Next article:2023 World Oceans Day slogan about protecting the oceans
- Related articles
- How to write a composition when traveling in Taibai Lake?
- Parking battery car regulations slogan
- March national primary and secondary school safety education day theme activities slogan [recommended]
- How to write the slogan of advanced simplicity and wind wear
- Social recruitment slogan
- Opening speech of foot bath city
- Is it better to join the maternal and child store or not?
- [A group of ordinary teaching and research researchers hold up a clear sky for teaching and research] Teaching and research work report of teaching and research researchers
- What is vicissitudes, generation after generation 120 years?
- What is the function of a robot?