hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Wampler <>
Subject Re: Transfer Data to new location
Date Tue, 12 Feb 2013 16:54:49 GMT
hadoop fs -mv old_path new_path

If one new_path isn't in HDFS, use -get instead of -mv.

If you're moving Hive tables, you should then use ALTER TABLE to change the
metadata. Or, if the tables are external and have no partitions, you could
just drop them and recreate them with the new location.

On Tue, Feb 12, 2013 at 10:50 AM, Hamza Asad <> wrote:

> i want to change my HIVE/HDFS directory.. how can i transfer data which
> resides in HDFS to some other directory ? either i have have to use
> sqoop-export followed by sqoop-import to new location?? or is there any
> easier solution for safely data transfer??
> --
> *Muhammad Hamza Asad *
>  +923457261988

*Dean Wampler, Ph.D.*

View raw message