-Re: Transfer Data to new location
Dean Wampler 2013-02-12, 16:54
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 <[EMAIL PROTECTED]> 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 *
*Dean Wampler, Ph.D.*