You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Appy (JIRA)" <ji...@apache.org> on 2018/04/04 01:16:00 UTC

[jira] [Commented] (HBASE-20243) [Shell] Add shell command to create a new table by cloning the existent table

    [ https://issues.apache.org/jira/browse/HBASE-20243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424832#comment-16424832 ] 

Appy commented on HBASE-20243:
------------------------------

Patch looks good, few comments.
 * don't we need shell test too?
 * use a variable NUM_SPLITS=2 and use that in variable initializations and asserts
 * Add tests for cases when a) source table doesn't exist, b) destination table exists. Basically, we should have tests for both success and failure scenarios.
 * Does it compile? I don't see FAMILY_0 and 1 in declarations in TestAsyncTableAdminApi.java
 * Any way we can refactor out the common code in test?

> [Shell] Add shell command to create a new table by cloning the existent table
> -----------------------------------------------------------------------------
>
>                 Key: HBASE-20243
>                 URL: https://issues.apache.org/jira/browse/HBASE-20243
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Guangxu Cheng
>            Assignee: Guangxu Cheng
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: HBASE-20243.master.001.patch, HBASE-20243.master.002.patch, HBASE-20243.master.003.patch, HBASE-20243.master.004.patch, HBASE-20243.master.005.patch
>
>
> In the production environment, we need to create a new table every day. The schema and the split keys of the table are the same as that of yesterday's table, only the name of the table is different. For example, xxxxx_20180321,xxxxx_20180322 etc.But now there is no convenient command to do this. So we may need such a command(clone_table) to create a new table by cloning the existent table.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)