hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dealmaker <vin...@gmail.com>
Subject How to Rename & Create DB Table in Hadoop?
Date Wed, 20 May 2009 06:48:28 GMT

Hi,
  I want to backup a table and then create a new empty one with following
commands in Hadoop.  How do I do it in java?  Thanks.

BEGIN;
RENAME TABLE my_table TO backup_table;
CREATE TABLE my_table LIKE backup_table;
COMMIT;

-- 
View this message in context: http://www.nabble.com/How-to-Rename---Create-DB-Table-in-Hadoop--tp23629956p23629956.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.


Mime
View raw message