Frequently used Hadoop Commands 💇
In this post we will see the most frequently used hadoop commands
hadoop version - prints the Hadoop version
hadoop fs –mkdir /path/directory_name - create directory directory in HDFS
hadoop fs -ls /path - command to enlist the files and directories present in HDFS
haoop fs -put <localsrc> <dest> - copy local file of the local file system to the Hadoop filesystem
hadoop fs -get <src> <localdest> - copies the file or directory from the Hadoop file system to the local file system
hadoop fs –cat /path_to_file_in_hdfs - cat command to display the content of the file present in HDFS.
hadoop fs -mv <src> <dest> - move to directory in HDFS
hadoop fs -cp <src> <dest> - copy file from one location in HDFS to another
Subscribe to my newsletter
Read articles from Bikram Chatterjee directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Bikram Chatterjee
Bikram Chatterjee
I'm Proficient in a variety of Big Data technologies, including AWS, Azure, GCP, Hadoop, Databricks, Pyspark, Sql, Python, Docker, Jenkins, Git/GitHub, Kubernetes, Azure Data Engineering.