[
https://issues.apache.org/jira/browse/HBASE-20243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16408062#comment-16408062
]
Ted Yu commented on HBASE-20243:
--------------------------------
{code}
2726 * @param newTableName name of the new table where the table will be
created
{code}
'name of the new table' should be enough for javadoc.
The new method is called {{cloneTable}}. But it only creates the table without
filling data. I think currently {{clone}} means duplicating table content as
well.
> [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)