HDFS mkdir

Share

                   HDFS mkdir

In Hadoop Distributed File System (HDFS), the mkdir command is used to create a new directory within the file system. This command allows you to organize and structure your data by creating directories to store files. Here’s how you can use the hadoop fs -mkdir command:

bash
hadoop fs -mkdir <directory_path>
  • <directory_path>: This is the HDFS path where you want to create the new directory.

For example, if you want to create a new directory named “mydata” in the root of HDFS, you can use the following command:

bash
hadoop fs -mkdir /mydata

If you want to create a nested directory structure, you can specify the full path including subdirectories. For example:

bash
hadoop fs -mkdir /user/hadoop/data

In this example, the -mkdir command will create the “data” directory within the “hadoop” user’s home directory in HDFS.

Hadoop Training Demo Day 1 Video:

 
You can find more information about Hadoop Training in this Hadoop Docs Link

 

Conclusion:

Unogeeks is the No.1 IT Training Institute for Hadoop Training. Anyone Disagree? Please drop in a comment

You can check out our other latest blogs on Hadoop Training here – Hadoop Blogs

Please check out our Best In Class Hadoop Training Details here – Hadoop Training

💬 Follow & Connect with us:

———————————-

For Training inquiries:

Call/Whatsapp: +91 73960 33555

Mail us at: info@unogeeks.com

Our Website ➜ https://unogeeks.com

Follow us:

Instagram: https://www.instagram.com/unogeeks

Facebook:https://www.facebook.com/UnogeeksSoftwareTrainingInstitute

Twitter: https://twitter.com/unogeeks


Share

Leave a Reply

Your email address will not be published. Required fields are marked *