Skip to content

It's used to back up tables in hive database.after run hbash.sh databasename, automatically generate shell script hql.run ./hql to import hive table.

Notifications You must be signed in to change notification settings

EdwardsBean/hive-table-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

工具功能:

备份指定数据库的所有表的建表语句

使用方法:

1.将hback.sh拷贝到线上机器目录,脚本参数:database name,运行生成建表脚本:hql

./hback.sh 91pc

2.将生成的hql脚本放到线下机器,执行。自动创建备份了的表

./hql

About

It's used to back up tables in hive database.after run hbash.sh databasename, automatically generate shell script hql.run ./hql to import hive table.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published