Let us copy data into HDFS and understand details about how data is stored in HDFS.
hadoop fs is the main command using which we can copy and manage files in HDFS.
https://gist.github.com/dgadiraju/3ef7a526ff1b047f5955ff61bfd9c38c