How to create a directory in the Hadoop file system?

To create a directory in the Hadoop file system, you can use the following command:

hadoop fs -mkdir /path/to/directory

To create a directory named “test” in the root directory, you can run the following command:

hadoop fs -mkdir /test

Ensure you have the appropriate permissions to create a directory, as otherwise you may encounter permission errors.

Leave a Reply 0

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


广告
Closing in 10 seconds
bannerAds