Database Reference
In-Depth Information
•
copyFromLocal
: This command copies a file/files from the local filesystem to
HDFS.
The syntax of the
copyFromLocal
command is
hdfs dfs -
copyFromLocal <localsrc> URI
. The following is the screenshot show-
ing an example of the
copyFromLocal
command:
•
copyToLocal
: This command copies a file/files from HDFS to thelocal filesys-
tem.
The syntax of the
copyToLocal
command is
hdfs dfs -copyToLocal
URI <localdst>
. The following is the screenshot showing an example of the
copyToLocal
command:
•
cp
: This command copies files within HDFS.
The syntax of the
cp
command is
hdfs dfs -cp URI [URI …] <dest>
.
The following is the screenshot showing an example of the
cp
command:
•
mkdir
: This command creates a directory in HDFS.