To upgrade the HDFS Metadata, run the following steps on your NameNode process machine.
![]() | Note |
|---|---|
This next step requires commands that need to be run with the SuperUser - ‘hadoop’. If you do
not know the password for the |
To reset, execute these commands in Administrator mode from a Powershell prompt:
$username = "hadoop" $password = "TestUser123" $user = [ADSI]("WinNT://./$username") $user.SetPassword($password) Get-WmiObject win32_service -Filter "StartName='.\\$username'" | %{ $_.StopService(); $_.Change($null,$null,$null,$null,$null,$null,$null,"$password"); }Start a command prompt in Administrator mode.
Switch to the
hadoopuser:>runas /user:hadoop /savecred cmd
Enter the
hadoopuser password.Execute the NameNode upgrade:
>hadoop namenode -upgrade
To view the progress of the upgrade, open the NameNode UI. When the upgrade completes, a message similar to the following displays:
Upgrade for version -44 has been completed. Upgrade is not finalized.
![[Note]](../common/images/admon/note.png)
Note Do not finalize the upgrade at this time. Wait until after you have completed some further verification steps.
Close the command shell where the
hadoop namenode -upgradecommand is running to shutdown the NameNode process.

