After enabling NameNode
high availability, use the Manage JournalNodes wizards to maintain at least three active
JournalNodes.
NameNode high availability requires that you must maintain
at least three, active JournalNodes in your cluster. You can use the Manage
JournalNode wizard to assign, add, or remove JournalNodes on hosts in your
cluster. The Manage JournalNode wizard enables you to assign
JournalNodes, review and confirm required configuration changes, and will restart all
components in the cluster to take advantage of the changes made to JournalNode placement
and configuration. Completing the Manage JournalNode wizard restarts
all cluster services.
- NameNode high availability must be enabled in your cluster
-
In Ambari Web, browse to .
-
Click Service Actions, then click Manage
JournalNodes.
-
On Assign JournalNodes, make assignments by clicking the
+ and - icons and selecting host
names in the drop-down menus.
The Assign JournalNodes page enables you to maintain three,
current JournalNodes by updating each time you make an assignment.
-
On Review, verify the summary of your JournalNode host
assignments and the related configuration changes.
When you are satisfied that all assignments match your intentions, click
Next.
-
Using a remote shell, complete the steps on Save Namespace.
When you have successfully created a checkpoint, click
Next.
-
On Add/Remove JournalNodes, monitor the progress bars.
When progress completes, click Next.
-
Follow the instructions on Manual Steps Required: Format
JournalNodes.
When JournalNodes have initialized, click Next.
-
In the remote shell, confirm that you want to initialize JournalNodes, by entering
Y, at the following prompt:
Re-format filesystem in QJM to [host.ip.address.1,
host.ip.address.2, host.ip.address.3,] ? (Y or N)
Y
-
On Start Active NameNodes, monitor the progress bars.
When all services have re-started, click Next.
-
On Manual Steps Required: Bootstrap Standby NameNode,
complete each step, using the instructions on the page.
When you complete the bootstrap steps, click Next.
-
In the remote shell, confirm that you want to bootstrap the standby NameNode, by
entering Y, at the following prompt:
RE-format filesystem in Storage Directory
/grid/0/hadoop/hdfs/namenode ? (Y or N)
Y
-
On Start All Services, monitor the progress bars.
When the wizard has started all services, click Done. After
Ambari Web reloads, you may see some alert notifications.
Wait a few minutes until all the services restart and alerts clear.
-
Restart any components using Ambari Web, if necessary.
Review and confirm all recommended configuration changes.