[ https://issues.apache.org/jira/browse/HBASE-20243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16409146#comment-16409146 ]
Guangxu Cheng commented on HBASE-20243: --------------------------------------- {quote}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. {quote} Sorry, except {{clone}}, I didn't find any other more suitable word. As discussed in [clone-copy|http://net-informations.com/faq/framework/clone-copy.htm], {{Clone}} will copy the structure of a data where as {{Copy}} will copy the complete structure as well as data. IMO, {{clone}} may be suitable.I look forward to more better suggestions..Thanks > [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)