In Hive,
alter table old_name rename to new_name;

create table (
...
)

can solve your problem.

On Wed, May 20, 2009 at 8:30 PM, Owen O'Malley <omal...@apache.org> wrote:

>
> On May 19, 2009, at 11:48 PM, dealmaker wrote:
>
>
>> 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.
>>
>
> Since this is a question about Hive, you should be asking on
> hive-u...@hadoop.apache.org.
>
> -- Owen
>


Min
-- 
My research interests are distributed systems, parallel computing and
bytecode based virtual machine.

My profile:
http://www.linkedin.com/in/coderplay
My blog:
http://coderplay.javaeye.com

Reply via email to