airbnb / reair

ReAir is a collection of easy-to-use tools for replicating tables and partitions between Hive data warehouses.
Apache License 2.0
280 stars 97 forks source link

New Feature: Metastore Database Prefix #44

Open zshao opened 8 years ago

zshao commented 8 years ago

Allow a database prefix to be added to the destination cluster. This can be used for production testing . For example, add "test_" to all database names on the destination cluster.

jingweilu1974 commented 8 years ago

Yeah, sounds good to me.

plypaul commented 8 years ago

I agree, it'd be useful. The last time I looked into this though, it was a bit more complicated than expected. One approach might be to create another implementation of DestinationObjectFactory that creates objects with the modified prefix. However, you would need to make sure that all path generation goes through that object. Some effort was made to cover the cases, but I don't think all of them were addressed.

ericsahit commented 6 years ago

sounds useful to me