Installing prerequisites

Before you install IBM FCII data platform, you are required to complete the following prerequisite tasks.

Before you begin

Ensure that the Hadoop server on which you are installing has an internet connection.

Procedure

Attention: Perform these steps as root on the Hadoop master server for a development topology or the Hadoop secondary server for a production topology (unless otherwise noted).

  1. Install wget, perl, and perl-DBI:
    yum install -y perl perl-DBI wget
  2. Remove any MariaDB servers, if installed. This is necessary for the MySQL RPM files to install successfully in Step 3. To check if you have MariaDB packages, run the following command:
    rpm -qa |grep mariadb
    For each installed mariadb package, enter the following command:
    rpm -e --nodeps package_name
    For example, if the output is mariadb-libs-5.5.56-2.el7.x86_64, run the following command:
    rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64
    If the command is successful, no output is shown. To verify that all mariadb packages were removed, re-run the following command:
    rpm -qa |grep mariadb
  3. Install the MySQL RPM files:
    Remember: Perform the following step on the Hadoop master server for a development topology and the Hadoop secondary server for a production topology.
    1. Change to the /tmp directory:
      Note: Ensure that the directory has enough space to store these downloads.
      cd /tmp
    2. Download the MySQL RPM files to the /tmp directory:
      wget http://yum.oracle.com/repo/OracleLinux/OL7/MySQL56/x86_64/getPackage/mysql-community-common-5.6.40-2.el7.x86_64.rpm
      wget http://yum.oracle.com/repo/OracleLinux/OL7/MySQL56/x86_64/getPackage/mysql-community-libs-5.6.40-2.el7.x86_64.rpm
      wget http://yum.oracle.com/repo/OracleLinux/OL7/MySQL56/x86_64/getPackage/mysql-community-client-5.6.40-2.el7.x86_64.rpm
      wget http://yum.oracle.com/repo/OracleLinux/OL7/MySQL56/x86_64/getPackage/mysql-community-server-5.6.40-2.el7.x86_64.rpm
      wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
    3. Install the MySQL RPM files:
      rpm -ivh mysql-community-common-5.6.40-2.el7.x86_64.rpm
      rpm -ivh mysql-community-libs-5.6.40-2.el7.x86_64.rpm
      rpm -ivh mysql-community-client-5.6.40-2.el7.x86_64.rpm
      rpm -ivh mysql-community-server-5.6.40-2.el7.x86_64.rpm
      rpm -ivh mysql-community-release-el7-5.noarch.rpm
      Successful output appears similar to the following:
      Preparing...                          ################################# [100%]
      Updating / installing...
        	1:mysql-community-common-5.6.40-2.e################################# [100%]
  4. For offline installation only, edit the mysql-community.repo file:
    sed -i -e 's/enabled=1/enabled=0/g' /etc/yum.repos.d/mysql-community.repo
  5. On the Ambari server, log in as root and open a Terminal session. Then download the Hadoop media files:
    1. Create the installation media directory:
      mkdir -p /opt/ibm/fci/install/media
    2. Download the Hadoop media files and copy the contents to /opt/ibm/fci/install/media:
      cd /opt/ibm/fci/install/media
      wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.46.tar.gz  # mysql file 
      wget http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0/HDP-2.6.4.0-centos7-rpm.tar.gz # hdp
      wget http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7/HDP-UTILS-1.1.0.22-centos7.tar.gz # hdp-utils
      wget http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0/HDP-GPL-2.6.4.0-centos7-rpm.tar.gz # hdp-gpl
      wget http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.5/ambari-2.6.1.5-centos7.tar.gz #ambari