Problems associated with self managed Apache Hadoop cluster
Below are the few points which we need to consider while building a self managed Apache Hadoop cluster.
Ensure password less SSH connectivity between all machines
-- If 5 node cluster .. add private keys of all machines to each other
Install Hadoop Component in all 5 machines
b. Configure masters and slaves among 5 machines
c. Make sure, proper path is given to namenode and datanodes to store the meatdata & blocks respectively.
Cluster Scalablity -- scaling up/scaling down
Commisioning and Decommisioning
steps: Commisioning
-- stop cluster
-- install hadoop in new machine & edit configs
-- add machine ips/hosts in slaves file
-- start the cluster
steps: DeCommisioning
-- do a LoadBalancer/ decomissioning script
-- stop cluster
-- remove machine ips/hosts in slaves file
-- start the cluster
IMPORTANT: Make sure all the masters and slaves in cluster are sync with same time. Use, network time (ntpd) to synchronize the time
While installing other ecosystem components (hive, Sqoop, etc.,)to cluster:
-- ensure Port connections
-- proper firewall settings (inbound/outbound rules)
-- every service of other components should be able to interact with other services
-- Components version matching
Starting and stopping different component services in different machines manually.
Monitoring the services / Service metrics / health checkup
To overcome these problems, we choose any Hadoop distributions like Cloudera, Hortonworks or MapR to build and manage the Hadoop cluster.
Here are the installation steps for common Apache Hadoop Distributions.
Cloudera
-- Install Cloudera Manager
-- WebUI of cloudera manager
* Install and configure all the ecosystem components and services
-- CDH ( cloudera distribution of hadoop) can be installed through cloudera manager UI
Hortonworks
-- Install Ambari-Server
-- WebUI of Ambari
* Install and configure all the ecosystem components and services
-- HDP ( Hortonworks distribution of hadoop)
note: need fully qualified domain name...
Important: Add the hostnames and fqdn in machine where you access ambari server through UI.