[
https://issues.apache.org/jira/browse/HBASE-20243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16409178#comment-16409178
]
Guangxu Cheng commented on HBASE-20243:
---------------------------------------
hi,[~ashish singhi]. In our scenario, we need to create a new table every day,
but we will not import the data from the history table into the new table. New
data will be written to the new table. However, the schema and the split keys
of the new table is the same as that of yesterday's table, only the names of
the two tables are different.
{{clone_table}} will create a new table by cloning the schema and the split
keys of a existent table. There're no copies of data involved.
> [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: Major
> Attachments: HBASE-20243.master.001.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)