The File System (FS) shell includes various shell-like commands that directly interact with the Hadoop Distributed File System (HDFS) as well as other file systems that Hadoop supports, such as Local FS, WebHDFS, S3 FS, and others. The FS shell is invoked by:
We will start with some very basic help commands and this go over some of the most helpful Hadoop HDFS commands..
HDFS Command to check the health of the Hadoop file system.
HDFS Command to display the list of Files and Directories in HDFS.
HDFS Command to create the directory in HDFS.
HDFS Command to create a file in HDFS with file size 0 bytes.
HDFS Command to check the file size.
HDFS Command that reads a file on HDFS and prints the content of that file to the console as output.
HDFS Command that takes a source file and outputs the file in text format.
HDFS Command to copy the file from a Local file system to HDFS.
HDFS Command to copy the file from HDFS to Local File System.
HDFS Command to copy single source or multiple sources from local file system to the destination file system.
HDFS Command to copy files from hdfs to the local file system.
HDFS Command to count the number of directories, files, and bytes under the paths that match the specified file pattern.
HDFS Command to remove the file from HDFS.
HDFS Command to remove the entire directory and all of its content from HDFS.
HDFS Command to copy files from source to destination. This command allows multiple sources as well, in which case the destination must be a directory.
HDFS Command to move files from source to destination. This command allows multiple sources as well, in which case the destination needs to be a directory.
HDFS Command that makes the trash empty.
HDFS Command to remove the directory.
HDFS Command that returns the help for an individual command.
HDFS Command that displays help for given command or all commands if none is specified.
In this article , we see hadoop HDFS is a fundamental building block of the Hadoop ecosystem. here we learn about use case and some very basic hadoop hdfs command. check next article for other command and more detail.