Step 3: Install Cloudera Manager Server
In this step you install the Cloudera Manager packages on the Cloudera Manager Server host, and optionally enable auto-TLS.
Install Cloudera Manager Packages
- On the Cloudera Manager Server host, type the following commands to install the Cloudera Manager packages.
OS Command RHEL, CentOS, Oracle Linux
sudo yum install cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server
sudo zypper install cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server
sudo apt-get install cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server
- If you are using an Oracle database for Cloudera Manager Server, edit the /etc/default/cloudera-scm-server file on the Cloudera Manager server host. Locate the line that begins with export CMF_JAVA_OPTS and change the -Xmx2G option to -Xmx4G.
- On all hosts, run the following command to install the Cloudera Manager agent:
OS Command RHEL, CentOS, Oracle Linux
sudo yum install cloudera-manager-daemons cloudera-manager-agent
sudo zypper install cloudera-manager-daemons cloudera-manager-agent
sudo apt-get install cloudera-manager-daemons cloudera-manager-agent
- On all hosts, configure the Cloudera Manager Agent to point to the Cloudera Manager Server by setting the following properties in the /etc/cloudera-scm-agent/config.ini configuration file:
Property Description server_host Name of the host where Cloudera Manager Server is running. server_port Port on the host where Cloudera Manager Server is running.
- Start the Agents by running the following command on all hosts:
- RHEL 7, SLES 12, Debian 8, Ubuntu 16.04
sudo systemctl start cloudera-scm-agentIf the agent starts without errors, no response displays.
- RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu 12.04, 14.04
sudo service cloudera-scm-agent startYou should see the following:
Starting cloudera-scm-agent: [ OK ]
When the Agent starts, it contacts the Cloudera Manager Server. If communication fails between a Cloudera Manager Agent and Cloudera Manager Server, see Troubleshooting Installation Problems. When the Agent hosts reboot, cloudera-scm-agent starts automatically.
(Recommended) Enable Auto-TLS
Auto-TLS greatly simplifies the process of enabling and managing TLS encryption on your cluster. It automates the creation of an internal certificate authority (CA) and deployment of certificates across all cluster hosts. It can also automate the distribution of existing certificates, such as those signed by a public CA. Adding new cluster hosts or services to a cluster with auto-TLS enabled automatically creates and deploys the required certificates.
Auto-TLS is supported for new installations only. You must enable Auto-TLS before adding any hosts to Cloudera Manager. To enable auto-TLS with an embedded Cloudera Manager CA, run the following command:
sudo JAVA_HOME=/usr/java/jdk1.8.0_141-cloudera /opt/cloudera/cm-agent/bin/certmanager setup --configure-services
Replace jdk1.8.0_141-cloudera with your JDK version. If you want to store the files in a directory other than the default (/var/lib/cloudera-scm-server/certmanager), add the --location option as follows:
sudo JAVA_HOME=/usr/java/jdk1.8.0_141-cloudera /opt/cloudera/cm-agent/bin/certmanager --location /opt/cloudera/CMCA setup --configure-services
Check the /var/log/cloudera-scm-agent/certmanager.log log file to confirm that the /var/lib/cloudera-scm-server/certmanager/* directories were created.
That's it! When you start Cloudera Manager Server, it will have TLS enabled, and all hosts that you add to the cluster, as well as any supported services, will automatically have TLS configured and enabled.
For more information about auto-TLS, see Configuring TLS Encryption for Cloudera Manager and CDH Using Auto-TLS.
Install and Configure Databases
After installing the Cloudera Manager Server packages, continue to Step 4: Install and Configure Databases.