Enabling support for Essentials for R

Analytic Server supports scoring R models and running R scripts.

To install Essentials for R after a successful Analytic Server installation in Cloudera Manager:

  1. Provision the server environment for Essentials for R. For more information, see step 1 in Enabling Support for Essentials for R.
  2. Download the self-extracting archive (BIN) for IBM SPSS Modeler Essentials for R RPM. Essentials for R is available for download (https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=swg-tspssp). Choose the file specific to your stack, stack version, and hardware architecture.
  3. Run the self-extracting archive as a root or sudo user on the Cloudera Manager server host. The following packages must be installed or available from the configured repositories:
    • Red Hat Linux: gcc-gfortran, zip, gcc-c++
    • SUSE Linux: gcc-fortran, zip, gcc-c++
    • Ubuntu Linux: gcc-fortran, zip, gcc-c++
  4. The self-extracting installer does the following tasks:
    1. Displays the required licenses and prompts the installer to accept them.
    2. Prompts the installer to input the R source location, or continue with the default location. The default R version that is installed is 3.3.2. To install a different version:
      • Online installation: Provide the URL to the required R version archive. For example, https://cran.r-project.org/src/base/R-2/R-2.15.3.tar.gz for R 2.15.3.
      • Offline installation: Download and then copy the required R version archive to the Cloudera Manager server host. Do not rename the archive (by default, it is named R-x.x.x.tar.gz). Provide the URL to the copied R archive as follows: file://<R_archive_directory>/R-x.x.x.tar.gz. If the R-2.15.3.tar.gz archive was downloaded and then copied to /root, the URL is file:///root/R-2.15.3.tar.gz.
      Note: Other R versions can be found at https://cran.r-project.org/src/base/.
    3. Installs the packages that R requires.
    4. Downloads and installs R plus the Essentials for R plugin.
    5. Creates the parcel and parcel.sha file and copies them to /opt/cloudera/parcel-repo. Enter the correct location if the location has changed.
  5. After the installation is complete, distribute and activate the Essentials for R parcel in Cloudera Manager (click Check for New Parcels to refresh the parcel list).
  6. If the Analytic Server service is already installed:
    1. Stop the service.
    2. Refresh the Analytic Server binaries.
    3. Start the service to finish the Essentials for R installation.
  7. If the Analytic Server service is not installed, then proceed with its installation.
Note: All Analytic Server hosts must have the appropriate archive (zip and unzip) packages installed.