Database Reference
In-Depth Information
The syntax of the
mkdir
command is
hdfs dfs -mkdir <paths>
. The
following is the screenshot showing an example of the
mkdir
command:
•
mv
: This command moves files within HDFS.
The syntax of the
mv
command is
hdfs dfs -mv URI [URI …] <dest>
.
The following is the screenshot showing an example of the
mv
command:
•
rm
: This command deletes files from HDFS.
The syntax of the
rm
command is
hdfs dfs -rm URI [URI …]
. The fol-
lowing is the screenshot showing an example of the
rm
command:
•
rm -r
: This command deletes a directory from the HDFS.
The syntax of the
rm -r
command is
hdfs dfs -rm -r URI [URI …]
.
The following is the screenshot showing an example of the
rm -r
command: