What is the purpose of the hadoop fs -put command?
The “hadoop fs -put” command is used to upload local files or directories to the Hadoop Distributed File System (HDFS). Essentially, this command copies local files or directories to a specified path in HDFS.
Example of use:
hadoop fs -put /path/to/local/file hdfs://namenode:port/path/in/hdfs
The command above copies the local file /path/to/local/file to the path /path/in/hdfs in HDFS. This allows you to further process, analyze, or store the uploaded file in HDFS.