Installing Cloudera Director Server and Client on the EC2 Instance
To install Cloudera Director, perform the following tasks. You must be either running as root or using sudo to perform these tasks.
RHEL 7 and CentOS 7
- SSH as ec2-user into the EC2 instance you created for Cloudera Director. If you have VPN or AWS Direct Connect, SSH to your private IP address.
Otherwise, use your public IP address.
ssh -i your_file.pem ec2-user@private_IP_address
- Install a supported version of the Oracle Java Development Kit (JDK) on the Cloudera Director host. Currently, Cloudera Director supports JDK versions 7 and 8. For download and
installation information, see Java SE Downloads. After downloading the RPM
file to the EC2 instance, install the JDK:
sudo yum localinstall jdk-version-linux-x64.rpm
- Some RHEL 7 AMIs do not include wget by default. If your RHEL AMI does not, install it now:
sudo yum install wget
- Add the Cloudera Director repository to the package manager:
cd /etc/yum.repos.d/ sudo wget "http://archive.cloudera.com/director/redhat/7/x86_64/director/cloudera-director.repo"
- Install Cloudera Director server and client by running the following command:
sudo yum install cloudera-director-server cloudera-director-client
- Start the Cloudera Director server by running the following command:
sudo service cloudera-director-server start
- If the RHEL 7 or CentOS firewall is running on the EC2 instance where you have installed Cloudera Director, disable and stop the firewall with the following commands:
sudo systemctl disable firewalld sudo systemctl stop firewalld
You are now ready to configure a SOCKS proxy.
RHEL 6 and CentOS 6
- SSH as ec2-user into the EC2 instance you created for Cloudera Director. If you have VPN or AWS Direct Connect, SSH to your private IP address.
Otherwise, use your public IP address.
ssh -i your_file.pem ec2-user@private_IP_address
- Install a supported version of the Oracle Java Development Kit (JDK) on the Cloudera Director host. Currently, Cloudera Director supports JDK versions 7 and 8. For download and
installation information, see Java SE Downloads. After downloading the RPM
file to the EC2 instance, install the JDK:
sudo yum localinstall jdk-version-linux-x64.rpm
- Add the Cloudera Director repository to the package manager:
cd /etc/yum.repos.d/ sudo wget "http://archive.cloudera.com/director/redhat/6/x86_64/director/cloudera-director.repo"
- Install Cloudera Director server and client by running the following command:
sudo yum install cloudera-director-server cloudera-director-client
- Start the Cloudera Director server by running the following command:
sudo service cloudera-director-server start
- Save the existing iptables rule set and disable the firewall:
sudo service iptables save sudo chkconfig iptables off sudo service iptables stop
You are now ready to configure a SOCKS proxy.
Ubuntu
- SSH as ubuntu into the EC2 instance you created for Cloudera Director. If you have VPN or AWS Direct Connect, SSH to your private IP address. Otherwise
use your public IP address.
ssh -i your_file.pem ubuntu@private_IP_address
- Install a supported version of the Oracle Java Development Kit (JDK) on the Cloudera Director host. Currently, Cloudera Director supports JDK versions 7 and 8. For download and
installation information, see Java SE Downloads. After downloading the
installation file to the EC2 instance, install the JDK. The following example installs JDK version 7:
sudo apt-get update sudo apt-get install oracle-j2sdk1.7
- Add the Cloudera Director repository to the package manager:
cd /etc/apt/sources.list.d/ sudo curl "http://archive.cloudera.com/director/ubuntu/trusty/amd64/director/cloudera-director.list" -O
- Add the signing key:
sudo curl -s "http://archive.cloudera.com/director/ubuntu/trusty/amd64/director/archive.key" | sudo apt-key add -
- Install Cloudera Director server by running the following command:
sudo apt-get update sudo apt-get install cloudera-director-server cloudera-director-client
- Start the Cloudera Director server by running the following command:
sudo service cloudera-director-server start
- Save the existing firewall rules and disable the firewall:
sudo iptables-save > ~/firewall.rules sudo service ufw stop
You are now ready to configure a SOCKS proxy.
Installing Only Cloudera Director Server or Cloudera Director Client
The installation instructions above will install both the server and client. Cloudera recommends installing both because together they provide the full functionality of Cloudera Director. Optionally, you can install just the client, but this will only enable you to use the client in standalone mode. Similarly, you can install just the server, but then you will be unable to launch a cluster at the command line with a customized configuration file.
- For RHEL and CentoOS, run the command sudo yum install cloudera-director-client instead of sudo yum install cloudera-director-server cloudera-director-client.
- For Ubuntu: run the command sudo apt-get install cloudera-director-client instead of sudo apt-get install cloudera-director-server cloudera-director-client.
- For RHEL and CentoOS, run the command sudo yum install cloudera-director-server instead of sudo yum install cloudera-director-server cloudera-director-client.
- For Ubuntu: run the command sudo apt-get install cloudera-director-server instead of sudo apt-get install cloudera-director-server cloudera-director-client.