- Connect to your CDH5 edge or gateway node and gather the required binaries and configuration files, then download them to your local machine.
- Upload the gathered files into a Domino project to allow access by the Domino environment builder.
- Create a new Domino environment that uses the uploaded files to enable connections to your cluster.
- Enable YARN integration for the Domino projects that you want to use with the CDH5 cluster.
Gather the required binaries and configuration files
You will find most of the files for setting up your Domino environment on your CDH5 edge or gateway node. To get started, connect to the edge node via SSH, then follow the steps below.-
Create a directory named
hadoop-binaries-configsat/tmp. -
Create the following subdirectories inside
/tmp/hadoop-binaries-configs/. -
Optional: If your cluster uses Kerberos authentication, create the following subdirectory in
/tmp/hadoop-binaries/configs/.Then, copy thekrb5.confKerberos configuration file from/etc/to/tmp/hadoop-binaries-configs/kerberos. -
Copy the
CDHandSPARK2directories from/opt/cloudera/parcels/to/tmp/hadoop-binaries-configs/parcels/. These directories will have a version number appended to their names, so complete the appropriate directory name in the commands shown below. -
Copy the
hadoop,hive,spark, andspark2directories from/etc/to/tmp/hadoop-binaries-configs/configs/. -
On the edge node, run the following command to identify the version of Java running on the cluster.
You should then download a JDK .tar file from the Oracle downloads page that matches that version. The filename will have a pattern like the following.
jdk-8u211-linux-x64.tar.gzKeep this JDK handy on your local machine for use in a future step. -
Compress the
/tmp/hadoop-binaries-configs/directory to a gzip archive.When finished, useSCPto download the archive to your local machine. -
Next, you’ll need to extract the archive on your local machine, add a
javasubdirectory, then add the JDK .tar file you downloaded earlier to thejavasubdirectory. -
When finished, your
hadoop-binaries-configsdirectory should have the following structure: -
If your directory contains all the required files, you can now compress it to a gzip archive again in preparation for uploading to Domino in the next step.
Upload the binaries and configuration files to Domino
Use the following procedure to upload the archive you created in the previous step to a public Domino project. This will make the file available to the Domino environment builder.- Log in to Domino, then create a new public project.
- Open the Code page for the new project, then click to browse for files and select the archive you created in the previous section. Then click Upload.
- After the archive has been uploaded, click the gear menu next to it on the Files page, then right click Download and click Copy Link Address. Save the copied URL in your notes, as you will need it in the next step. After you have recorded the download URL of the archive, you’re ready to build a Domino environment for connecting to your CDH5 cluster.
Create a Domino environment for connecting to CDH5
- Click Environments from the Domino main menu, then click Create Environment.
- Give the environment an informative name, then choose a base environment that includes the version of Python that is installed on the nodes of your CDH5 cluster. Most Linux distributions ship with Python 2.7 by default, so you will see the Domino analytics distribution for Python 2.7 used as the base image in the following examples. Click Create when finished.
-
After creating the environment, click Edit Definition. Copy the following example into your Dockerfile instructions, then be sure to edit it wherever necessary with values specific to your deployment and cluster.
In this Dockerfile, wherever you see a hyphenated instruction enclosed in angle brackets like
<paste-your-domino-download-url-here>, be sure to replace it with the corresponding value you recorded in previous steps. You may also need to edit commands that follow to match downloaded filenames. -
Scroll down to the Pre Run Script field and add the following lines:
-
Scroll down and click Advanced to expand additional fields. Add the following line to the Post Setup Script field:
- Click Build when finished editing the Dockerfile instructions. If the build completes successfully, you are ready to try using the environment.
Configure a Domino project for use with a CDH5 cluster
This procedure assumes that an environment with the necessary client software has been created according to the instructions above. Ask your Domino admin for access to such an environment.- Open the Domino project you want to use with your CDH5 cluster, then click Settings from the project menu.
- On the Integrations tab, click to select YARN integration from the Apache Spark panel, then click Save. You do not need to edit any of the fields in this section.
- If your cluster uses Kerberos authentication, you can configure credentials at the user level or project level . Do so before attempting to use the environment. Note that if you followed the instructions above on creating your environment, your Kerberos configuration file has already been added to it.
- On the Hardware & Environment tab, change the project default environment to the one with the cluster’s binaries and configurations files installed.