Hadoop in renaming files

stackoverflow_user1 picture stackoverflow_user1 · Apr 8, 2013 · Viewed 41.8k times · Source

Is there a simple command for hadoop that can change the name of a file (in the HDFS) from its old name to a new name?

Answer

Sourav Gulati picture Sourav Gulati · Apr 8, 2013

Use the following :

hadoop fs -mv oldname newname