Microsoft® HDInsight Preview for Windows: How to create a directory in Hadoop File System?

In this post, we’ll see how to create a directory in the Hadoop File System for HDInsight’s windows version.

Here are the steps:

1. You have the Microsoft® HDInsight Preview for Windows Installed on your machine. Here’s a tutorial: Installing HDInsight (Microsoft’s Hadoop) on windows 7

2. Make sure that the Cluster is up & running! To check this, I click on the “Microsoft HDInsight Dashboard” or open http://localhost:8085/ on my machine

Did you get any “wait for cluster to start..” message? No? Great! Hopefully, all your services are working perfectly and you are good to go now!

3. Let’s start the Hadoop Command Line (can you see the Icon on the Desktop? Yes? Great! Open that!)

4. Here the command to create a directory looks like:

hadoop fs -mkdir /user/data/input

The above command creates /user/data/input

5. Let’s verify that the input directory was created under /user/data

hadoop fs -ls /user/data

hadoop file system list files in a directory create directory

Conclusion:
In this post, we saw how to create a directory in Hadoop (on windows) file system and also we saw how to list files/directory using the -ls command.

Related Articles:

 

About these ads

7 thoughts on “Microsoft® HDInsight Preview for Windows: How to create a directory in Hadoop File System?

  1. Pingback: Microsoft® HDInsight Preview for Windows: How to use Sqoop to load data into HDFS from SQL Server? | Paras Doshi – Blog

  2. Pingback: Hadoop on Windows: How to Browse the Hadoop Filesystem? | Paras Doshi – Blog

  3. Pingback: How to load some data to Hadoop on Windows to get started? | Paras Doshi – Blog

  4. Pingback: inner workings of HDFS and MapReduce in a nutshell: | Paras Doshi – Blog

  5. Pingback: How to Install Microsoft .Net SDK for Hadoop? | Paras Doshi – Blog

  6. Pingback: Quick Post: Uploading Local Data to Hadoop file system using Hadoop Command Line | Paras Doshi – Blog

  7. Pingback: Resource: A great tutorial for Hadoop on local windows and Azure. | Paras Doshi – Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s