Per-Database and Per-Table Property to control the replication

22 views
Skip to first unread message

Zheng Shao

unread,
Dec 6, 2016, 9:16:30 PM12/6/16
to reair
We have a strong requirement for Hive replication: To let users decide what database/tables to replicate (vs not - for example, temporary database/tables).

In order to fulfill that requirement, I am planning to utilize DBProperty and TBLProperty.


So the following Hive commands will enable the replication:

ALTER DATABASE <db> SET DBPROPERTY ("replication" = "true");
ALTER TABLE <table> SET TBLPROPERTY ("replication" = "true");


One possibility is to add the logic to TableCompareWorker.processTable().

Is this something that the Reair project will take on?  Anybody else needs this?


--
Zheng

Paul Yang

unread,
Dec 6, 2016, 10:10:38 PM12/6/16
to Zheng Shao, reair
Hey Zheng,

We had a similar need, but only on the incremental replication side. There's an interface 


for users to create custom filtering classes and configuration options for the user to specify the class name. I think a similar option would be useful to have in batch replication.

Cheers,
Paul

--
You received this message because you are subscribed to the Google Groups "reair" group.
To unsubscribe from this group and stop receiving emails from it, send an email to airbnb-reair+unsubscribe@googlegroups.com.
To post to this group, send email to airbnb...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/airbnb-reair/CAAguJ7qV%3DWYRFWFxkJ9GpdRKVn9AgQUJLGQk8pkwzJUgNRUYkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages