Installing Cloudera Manager and CDH on Amazon EC2: Part-2

Login to “ClouderaHadoopClusterManager” instance through PuTTY.

17

Turn off “iptables” entirely or check with your Network administrator for Firewall setting.

$ service iptables status
$ service iptables stop
$ reboot

Note : Repeat the above step for all the instances in the cluster.

Disable “SELinux” before proceed with the installation

$ sestatus
$ vi /etc/selinux/config

18

19

Download the Cloudera Manager installer:

$ yum install wget
$ wget http://archive.cloudera.com/cm4/installer/latest/cloudera-manager-installer.bin

Execute the installer and follow the steps:

$ sudo su
$ chmod +x cloudera-manager-installer.bin
$ ./cloudera-manager-installer.bin

20

21

22

23

24

25

26

27

To verify Cloudera Manager installation:

$ curl -i -u ‘admin:admin’ http://localhost:7180/api/v1/tools/echo

If you see ā€œHello, World!ā€ message, good going till now.
28

Use the Cloudera Manager installation wizard to install Cloudera Manager and CDH packages into the cluster

Now open browser and navigate to http://<public hostname>:7180 and log into the Cloudera Manager Admin console.Ā The initial user name and password areĀ admin
29

30

31

32

Provide all your instance <public dns> or <public ip> addresses in the cluster including Cloudera manager instance by comma separator and click “Search“. Select all the instances listed as a search result and click “Continue“.

33

Keep all selection as default.

34

Brows the private key (cloudera_hadoop_key.pem) file which we have downloaded in the previous part. Keep Passphrase as blank

35

Wait for some time….

In the mean time if you want to see the Cloudera manager server log file, then use the command below:

$ tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log

36

37

If you see the above error, DO NOT worry at all, itā€™s known issue. You can find the known issue list at Cloudera Issue List.

Click ā€œBackā€ button until home screen then click ā€œContinueā€ button. Now you will find a tab “Currently Managed Hosts” with their private dns and private ip address. Select all and click “Continue

38

Wait for some time….

39

40

41

Select the services you want to install. I have selected “All Services

42

Choose “Use Embedded Database” and click “Test Connection

43

Keep all as default.

44

Wait for some time….

45

46

Hurray!!!!!! You are DONE.

Testing the Installation

To begin testing, start the Cloudera Manager Admin Console [http://<public host>:7180]. Once you’ve logged in, the left side of the screen should look a little like this:

47

Checking Host Heartbeats

One way to check whether all the Agents (hosts) are running is to look at the time since their lastĀ Heartbeat. You can do this by clicking theĀ HostsĀ tab where you can see a list of all the Hosts along with the value of theirĀ Last Heartbeat. By default, every Agent must heartbeat successfully every 15 seconds. A recent value for theĀ Last HeartbeatĀ means that the Server and Agents are communicating successfully.

48

**DO NOT forget to terminate (Delete) all 4 EC2 instances which you have created in Part-1.

Select all 4 EC2 instances and right click, select Instance State > Terminate

terminate

Leave a comment