9. Upgrading HDFS Metadata

To upgrade the HDFS Metadata, run the following steps on your NameNode:

  1. Run the NameNode upgrade:

    runas /user:hadoop "cmd /K hadoop namenode -upgrade"
  2. On each DateNode, start the datanode service:

    sc start datanode
  3. Leave the command prompt open until the process completes. To see the status of the upgrade open a browser and connect to the NameNode on port 500070 (http://namenode-host:50070).

    [Note]Note

    The amount of time it takes to upgrade HDFS depends upon the amount of data and number of nodes in your environment. It may take only take a few minutes, but could also take an hour.

  4. In the NameNode Administrative Interface verify that the number of DataNodes matches the number of DataNodes in your environment.

  5. Abort the command prompt using ctl+c to end the NameNode upgrade process.

  6. Start the NameNode service:

    sc start namenode
  7. Open a browser and connect to the NameNode on port 50070 (http://namenode-host:50070) and verify that SafeMode is off.


loading table of contents...