[ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544141 ]
Billy Pearson commented on HADOOP-2240: --------------------------------------- I am not sure how its coded right now for drop and create commands from the shell but I figured we could borrow from that Steps I was suggestion: 1. Get col data for table with - > show tables; 2. Drop table 3. Create table from the show table data All the code should be in the drop and create commands code to take care of the meta table. Just need to come up with a way to parse the show table data for the table we need. I have never coded in Java so this might be harder then I thank. from dropping tables and creating them in the past on my setup dropping takes about 10sec but create right after is done in < 1s > Truncate for hbase > ------------------ > > Key: HADOOP-2240 > URL: https://issues.apache.org/jira/browse/HADOOP-2240 > Project: Hadoop > Issue Type: New Feature > Components: contrib/hbase > Reporter: Billy Pearson > Priority: Minor > > Would be nice to have a way to truncate the tables from the shell. With out > doing a drop and create your self. Maybe the truncate could issue the drop > and create command for you based off the layout in the the table before the > truncate. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.