Reputation: 325
I have a folder name in HDFS Data#
and I wanted replace it Data=
Is there a way to do it hdfs?
Upvotes: 0
Views: 593
Reputation: 1529
Assuming Data#
is just short for the HDFS path of the folders a simple solution to achieve this would be to simply move your folder
hadoop fs -mv Data# Data=
If Data#
is only the folder name you will need the full HDFS path as well and the command becomes something like:
hadoop fs -mv full/path/to/Data# full/path/to/Data=
where you will need to change full/path/to
to the actual HDFS path.
Upvotes: 1