Basic Usage of HDFS

1
2
3
4
hdfs dfs -ls [hdfs dir] # List Files:
hdfs dfs -get [hdfs file_path] # Download a File
hdfs dfs -put [file need upload] [hdfs file_path] # Upload a File
hdfs dfs -mkdir [hdfs dir] # Create a Directory:

Some explanation

  1. [hdfs path]: This is the command-line interface for interacting with HDFS.

  2. [file need upload]: Replace this with the path to the file you want to upload from your local file system.

  3. [hdfs path]: Replace this with the path in HDFS where you want to upload the file.