Repository navigation
feat(replication): map HBase table names to Cloud Bigtable table IDs - #4639
Open
vermas2012 wants to merge 1 commit into
Open
vermas2012 wants to merge 1 commit into
vermas2012 wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a mechanism to map HBase table names to Cloud Bigtable table IDs, which is particularly useful for handling HBase tables in non-default namespaces. The changes include a new TableNameMapper class to handle these mappings via inline JSON, external files, or prefixed configuration properties, and updates to CloudBigtableReplicator to apply these mappings during replication. Additionally, the PR includes robust error handling for mapping collisions, improved batching logic for replication tasks, and comprehensive unit tests to verify the new functionality.
vermas2012
force-pushed
the
feat/replication-table-name-mapping
branch
2 times, most recently
from
October 13, 2026 15:23
3880a61 to
37af92b
Compare
Support mapping HBase table names (such as namespaced tables like 'my_namespace:my_table') to valid Cloud Bigtable table IDs during live WAL replication via three mutually exclusive configuration mechanisms: - google.bigtable.replication.table_name_mapping: inline JSON object - google.bigtable.replication.table_name_mapping_file: JSON file path resolved via Hadoop FileSystem (with local filesystem fallback when URI scheme is omitted) - google.bigtable.replication.table_name_mapping.<hbase_table>: direct per-table properties in hbase-site.xml or peer configuration Enforce 1:1 injectivity across canonicalized HBase source tables and target Cloud Bigtable table IDs (including unmapped identity fallback collision detection), coalesce WAL entries by mapped target table prior to row-key grouping, harden JSON and file streaming validation, and strengthen bidirectional marker detection and batch threshold checks.
vermas2012
force-pushed
the
feat/replication-table-name-mapping
branch
from
October 13, 2026 15:46
37af92b to
e66517c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support mapping HBase table names (such as namespaced tables like
my_namespace:my_table) to valid Cloud Bigtable table IDs during live WAL replication via three mutually exclusive configuration mechanisms:google.bigtable.replication.table_name_mapping: inline JSON object (identical format toHBaseSchemaTranslator'sgoogle.bigtable.schema.mapping.filepath)google.bigtable.replication.table_name_mapping_file: JSON file path resolved via HadoopFileSystem(with local filesystem fallback when URI scheme is omitted)google.bigtable.replication.table_name_mapping.<hbase_table>: direct per-table properties inhbase-site.xmlor peer configurationKey Details
default:tandt) and target Cloud Bigtable table IDs (including unmapped identity fallback collision detection).