Day: February 21, 2023

Section 5:42. Copying or Moving Files from one HDFS location to other HDFS location

We can also copy files within HDFS using commands like cp and mv. hadoop fs -cp  to copy files from one HDFS location to another HDFS location hadoop fs -mv  to move files from one HDFS location to another HDFS location mv is faster than cp as mv deals with only metadata whereas cp has …

Section 5:42. Copying or Moving Files from one HDFS location to other HDFS location Read More »

Section 5:41. Previewing Text Files in HDFS

The “cat” and “tail” commands in HDFS are used to view the contents of a file stored in the Hadoop Distributed File System. The “cat” command allows you to display the entire contents of a file in the terminal. For example: hadoop fs -cat /user/data/file.txt This command will display the contents of the file “/user/data/file.txt” …

Section 5:41. Previewing Text Files in HDFS Read More »