Managing Hive ACID table replication policies
After you create a replication policy, you can run the replication job, disable or delete the job, edit the policy configuration, or view the replication job history in Cloudera Manager.
The following example illustrates how Replication Manager determines the Tables count for a Hive ACID replication policy:
- You create a database that contains one managed table, two external tables,
three virtual views, and four materialized
views:
create database sample3; use sample3; CREATE TABLE table_04 (id int, name string); CREATE EXTERNAL TABLE table_02 (id int, name string); CREATE EXTERNAL TABLE table_03 (id int, name string); -- Create virtual views (these cause the mismatch) CREATE VIEW view_01 AS SELECT * FROM table_04; CREATE VIEW view_02 AS SELECT * FROM table_04; CREATE VIEW view_03 AS SELECT * FROM table_04; CREATE materialized VIEW mv1 AS SELECT * FROM table_04; CREATE materialized VIEW mv2 AS SELECT * FROM table_04; CREATE materialized VIEW mv3 AS SELECT * FROM table_04; CREATE materialized VIEW mv4 AS SELECT * FROM table_04; - You create and run a Hive ACID replication policy on the sample3 database.
- After the replication policy run is complete, the Tables
column on the Replication Policies page displays the
following statistics for the replication policy:
- The SOURCE displays the DUMP operation details the
following ways:
- The numerator is the sum total of all the managed tables,
external tables, and virtual views. In this example, the
numerator is 1 + 2 + 3 = 6.
This statistic does not include the materialized view because the hive.repl.dump.include.materialized.views advanced configuration snippet is false by default.
- The denominator is the sum total of all the managed tables, external tables, virtual views, and materialized views. In this example, the denominator is 1 + 2 + 3 + 4 = 10.
- The numerator is the sum total of all the managed tables,
external tables, and virtual views. In this example, the
numerator is 1 + 2 + 3 = 6.
- The TARGET displays the LOAD operation details the
following ways:
- The numerator is the number of Hive ACID tables (managed tables). In this example, the numerator is 1.
- The denominator is the number of subdirectories created in the staging location. Subdirectories are created for Hive ACID tables (managed tables) and virtual views. Therefore, in this example, the denominator is 1 + 3 = 4.
- The SOURCE displays the DUMP operation details the
following ways:
