You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/05/26 02:40:00 UTC
[jira] [Commented] (KUDU-3183) Add tablePrefix option to the Kudu
restore job
[ https://issues.apache.org/jira/browse/KUDU-3183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17351447#comment-17351447 ]
ASF subversion and git services commented on KUDU-3183:
-------------------------------------------------------
Commit bd37d601d36bcf51c595baad52b5d24b5e20d684 in kudu's branch refs/heads/master from Abhishek Chennaka
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=bd37d60 ]
[backup] KUDU-3183 Add --newDatabaseName and --removeImpalaPrefix
options to restore job
While Kudu does not have a notion of database, usually the full
table name is stored as <database>.<tablename> on kudu side. (NOTE:
database name is optional). Using the options in this patch users
can change the existing database name of the table or add a new
database name to the table i.e. the prefix to the '.' in the full
tablename as well as remove impala prefix for the tables which
are being restored.
1.--newDatabaseName : Use this option to specify the new database
name for the restored table. This will overwrite any existing
database and if there is no existing database, a new database will
be added to the table name. Will not affect "impala::" prefix.
E.g: Adding database name "newDB" to the tables impala::default.test,
impala::test, default.test, test will result in the table names
impala::newDB.test, impala::newDB.test, newDB.test, newDB.test .
This will not affect the existing/source tables.
2.--removeImpalaPrefix : If enabled, this option will remove the
“impala::” prefix, if present from the restored table names. This is
advisable if tables are backed up in Kudu clusters without HMS
integration and being restored to Kudu clusters with HMS integration.
Change-Id: I65adcc1b3de0a8e1ac5b7f50a2d3a7036aa69421
Reviewed-on: http://gerrit.cloudera.org:8080/17388
Tested-by: Kudu Jenkins
Reviewed-by: Grant Henke <gr...@apache.org>
> Add tablePrefix option to the Kudu restore job
> ----------------------------------------------
>
> Key: KUDU-3183
> URL: https://issues.apache.org/jira/browse/KUDU-3183
> Project: Kudu
> Issue Type: Improvement
> Components: backup
> Affects Versions: 1.10.0
> Reporter: Grant Henke
> Assignee: Abhishek
> Priority: Minor
> Labels: beginner, newbie, trivial
>
> The Kudu restore job has a `tableSuffix` option that is useful for slightly changing the name of a table on restore, but it could also benefit from a `tablePrefix` option. This would be especially useful as a way to append a database to a table name when restoring to an environment with HMS sync enabled.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)