Hadoop Create Directory: Step-by-Step
To create a directory in Hadoop, you can use the hadoop fs command. The specific steps are as follows:
- Open the terminal or command prompt window.
- Use the following command to create a directory:
hadoop fs -mkdir /path/to/directory
/path/to/directory is the path of the directory to be created.
- To confirm if the directory has been successfully created, you can use the following command to list the directory.
hadoop fs -ls /path/to/directory
This way you can create directories using Hadoop’s file system.