Giter VIP home page Giter VIP logo

hive-migration's Introduction

Hive Migration across Hadoop Clusters

This repository talks of Hive schema migration from one Hadoop cluster to another, or from one Hive version to another.

The process of migration is to get a dump of all Hive queries which can then be run in the target installation as Hive scripts. This includes Hive DB creation and Table creation DDL Scripts, as well as adding partition information to these tables.

Please refer to the manual for understanding and using the queries.

  • Tested on Hive v0.13 as Source and MySQL as MetaStore DB

This approach is well suited when the following drawbacks are encountered:

i) 	The IMPORT-EXPORT command doesn't work: 
	For tables with no partition, the export command creates a data folder. The import command
	will point to the new location, but will have the folder "data" in it. This can be a problem
	if a separate program is writing data to the location from where the Hive table is pointing/
	reading.

ii)	MSCK REPAIR TABLE doesn't work:
	If MR jobs has multiple outputs configured and the outputs are to be added as partitions for
	more than one Hive table, then the MSCK Repair table would not be able to get the correct HDFS
	paths added.
	This also fails when the partition locations are customized.

iii)	Hive Metastore Dump from Source to Target:
	If there is a lot of change in Hive Metastore Schema and there is a version upgrade along with
	cluster migration. Also it might be a little risky since we are touching the raw metadata.
	It is however the best way if the versions are same.

Drawbacks of this approach:

i) Indexes are NOT migrated

hive-migration's People

Contributors

anish749 avatar

Watchers

James Cloos avatar abderrahim.boussetta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.