• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

HDPCA Exam Objective – Add a new node to an existing cluster

by admin

Note: This is post is part of the HDPCA exam objective series

Adding a new node to a Live cluster is almost similar to installing a new HDP cluster with ambari. To add a new host you must enable passwordless ssh from the ambari-server to the new host.

How to setup passwordless SSH login in Linux

add new host HDP using ambari

Pre-requisites

1. Make sure you can do a passwordless ssh from ambari-server to the new host to be added.
2. You have generated the private ssh key in the ambari-server (this is already done when we first installed the HDP).
3. Add the new hosts FQDN in the /etc/hosts file of all the nodes in the cluster including the new host and ambari server.

# cat /etc/hosts
192.168.1.6    ambari-server.localdomain    ambari-server
192.168.1.2    nn1.localdomain    nn1
192.168.1.7    nn2.localdomain    nn2
192.168.1.3    dn1.localdomain    dn1
192.168.1.4    dn2.localdomain    dn2
192.168.1.5    dn3.localdomain    dn3

4. Disable iptables/firewalld in the new host. For my CentOS 7 hosts, I need to stop and disable firewalld.

# systemctl disable firewalld
# systemctl stop firewalld

Install Options

On “Install Options” page, provide the new host FQDN and the SSH private key from the ambari server.

Install options add new host HDPCA exam using ambari

Confirm Hosts

If everything is configured correctly the installation will start and you can view the logs of installation by clicking on the status.

adding new host HDP installation progress

The installation will take some time to completed. You may get some warnings with the prechecks done on the new hosts like firewalld is enabled etc. You can clear these warnings and re-run the prechecks.

adding new host HDP installation complete

Assign Slaves and Clients

We would not assign any role to the new hosts to keep things simple. If asked in the exam you can tick the appropriate role and proceed.

assign slaves and clients HDP add new host

Review

On the next page, you can review the configuration and begine the installation.

review the configuration - add new hosts to HDP using ambari

Install, Start and Test

The installer will start installing the necessary packages and start the components. The installer will also test the new components if they are working correctly.

Install start and test HDPCA add new host to HDP using ambari

Post completion of the installation, you may have to start a few services manually if they fail to start automatically.

adding new hosts to HDP complete

Summary

Review the summary page for the installed components.

add new host to HDP summary page

You can verify the new host added in the hosts tab in ambari.

verify the new hosts in ambari after addition HDP

As you can see we do not have much running on this host at the moment. But we can always enable new services/components later on.

new host addition HDP cluster using ambari

Filed Under: Hadoop, HDPCA, Hortonworks HDP

Some more articles you might also be interested in …

  1. HDPCA Exam Objective – Change the configuration of a service using Ambari
  2. CCA 131 – Add a new node to an existing cluster
  3. HDPCA Exam Objective – Define and deploy a rack topology script
  4. CCA131 – Create an HDFS user’s home directory
  5. HDPCA Practice Exam Questions and AWS Instance Setup Details
  6. HDPCA Exam Objective – Recover a snapshot
  7. Preparing for the CCA Administrator Exam (CCA131)
  8. HDPCA Exam Objective – Decommission a node (NodeManager)
  9. CCA 131 – Perform OS-level configuration for Hadoop installation
  10. HDPCA Exam Objective – Install ambari agent

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright