What are the methods for starting and shutting down HDFS in Hadoop?

The method to start and stop HDFS in Hadoop is by using Hadoop’s control script. Here are the steps to start and stop HDFS:

Start HDFS.

  1. Switch to the sbin directory located in the Hadoop installation directory.
  2. Execute the command: ./start-dfs.sh.

Shut down HDFS:

  1. Switch to the sbin directory under the Hadoop installation directory.
  2. Execute the command: ./stop-dfs.sh.

When HDFS is started, it initiates the NameNode and DataNode processes; and when HDFS is shut down, it terminates these processes.

Leave a Reply 0

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