Google Ads

Monday, May 19, 2014

How-to: Create a CDH Cluster on Amazon EC2 via Cloudera Manager

First thing, read the article below:

1) Launch a AWS Ubuntu machine

ubuntu-precise-12.04-amd64-server-20130502 (ami-09e27439)

Instance type: m3.xlarge

2) How to Install the Latest Version of Cloudera Manager
Once the state of the instance is “running” (provisioning takes usually less than 5 minutes), you  can SSH in and install Cloudera Manager 4.5. The public hostname of the instance is listed in the instance details in the AWS console.
$ ssh -i your-key.pem

Download the Cloudera Manager 4.5 installer and execute it on the remote instance:
$ wget $ chmod +x cloudera-manager-installer.bin $ sudo ./cloudera-manager-installer.bin

Once the installer finishes, use the public hostname of your server instance to navigate in your browser to, and then log into the web console (the default username and password are both “admin”). If you’re successfully logged in, congratulations!
Real example:
ubuntu@ip-10-220-12-251:~$ wget
ubuntu@ip-10-220-12-251:~$ chmod +x cloudera-manager-installer.bin
ubuntu@ip-10-220-12-251:~$ sudo ./cloudera-manager-installer.bin
ubuntu@ip-10-220-12-251:~$ sudo service cloudera-scm-server restart
Stopping cloudera-scm-server:  * cloudera-scm-server stopped
Starting cloudera-scm-server:  * cloudera-scm-server started
3)  Change root password and enable root to login without the AWS Key Pair
ubuntu@ip-10-220-12-251:~$ sudo -i
root@ip-10-220-12-251:~# ls
root@ip-10-220-12-251:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@ip-10-220-12-251:/home/ubuntu# sudo vi /etc/ssh/sshd_config
root@ip-10-220-12-251:/home/ubuntu# sudo service ssh reload
4) Log in and finish the installation
user: admin password: admin

No comments: