Here are the steps to build and install version 3.2 InfoSphere Streams product and Streams Studio RPMs.

  1. On a build machine, download the install image and extract the zipfile using the tar command below. The install files will be extracted into a folder called StreamsInstallFiles
    tar -zxvf <Streams install zip file>
  2. Navigate to the StreamInstallFiles directory.
    cd StreamsInstallFiles
  3. Run the dependency checker script.
    • Install all the required packages for the successful installation of streams. Missing dependencies can be installed using the following command. This requires setting up repository for the RPMS that are available as part of  the operating system package which is explained in the “Additional notes” section at the end of this document. This step should be run as user root (or sudo).
      Redhat/CentOS systems:
      yum install --nogpgcheck <rpm file name> 
      SLES systems: 
      zypper install <rpm file name>
  4. Building streams RPM on Redhat and CentOS systems requires an addition RPM called rpm-build. As user root, install rpm-build package using the following command.
    yum install rpm-build
  5. Since user root is not allowed to build streams RPM, SELinux Enforcing mode cannot be used during RPM build. So if the build machine is in SELinux Enforcing mode, then run the following command as user root to change the mode to permissive.
    /usr/sbin/setenforce 0
  6. Exit root user and logon to build machine as a non-root user.
  7. Copy rpm-spec-build from install image to user’s home directory.
    cp -r StreamsInstallFiles/rpmspecfiles/<rhel/centos/sles>/rpm-spec-build ~
  8. Navigate to rpm-spec-build in the user’s home directory.
    cd ~/rpm-spec-build
  9. Edit Makefile. At the minimum, following variables have to be set/changed
    • STREAMS_INSTALL_BUNDLE – Name of the streams install package
    • STREAMS_INSTALL_BUNDLE_DIR – By default this variable is set to user’s home directory. This needs to be edited only if the streams  install bundle is not in user’s home directory.
    • STREAMS_LICENSE_ACCEPTED – By default this variable is set to “FALSE”. This should be changed to “TRUE” for the RPM build to be successful.
  10. Setup streams build environment by running the following command from the folder  ~/rpm-spec-build
    make prep
  11. To build the Streams RPM , run the following command from ~/rpm-spec-build
    make streams
    NOTE: At the end of this step, Streams product RPM and Streams Studio RPM will be created under ~/rpm/RPMS/. This step takes few minutes to complete.
  12. Copy Streams product RPM and Streams Studio RPM from ~/rpm/RPMS/ on the build machine to all the target machines.
    scp ~/rpm/RPMS/*  user@hostname:~
  13. On all the target machines, run the dependency checker script that is packaged with streams installation package and install all the dependencies.
  14. After all the dependencies are installed, install InfoSphere Streams and Streams Studio RPMs on  the target machines using the following steps. This step should be done as user root (or sudo).
    Redhat/CentOS systems:
    yum install --nogpgcheck streams-product-rpm-file-name
    yum install --nogpgcheck streams-studio-rpm-file-name
    SLES systems:
    zypper install streams-rpm-file-name
    zypper install streams-studio-rpm-file-name

    At the successful completion of this step, InfoSphere Streams product will be installed at  /opt/ibm/InfoSphereStreams-3.2 and Streams studio will be installed at /opt/ibm/InfoSphereStreamsStudio-

Addtional notes:

Here are the steps to create a repository for the RPMs that are available in the operating system package.

  • Redhat/CentOS:
    1. Create (touch) a file with .repo extension in /etc/yum.repos.d/. A good name to use is RedHatDVD.repo or CentOSDVD.repo
    2. Put the following in the repo file
      name=RedHat Installation DVD
      Note: This is an example for RHEL 6.4 64-bit Virtual machine.  Look under the /media folder to see what the path is for other RHEL releases and architectures that needs to go in the baseurl .
  • SLES:
    1. Create (touch) a file with .repo extension in /etc/zypp/repos.d/. A good name to use is SlesDVD.repo
    2. Put the following in the repo file
      name=SUSE-Linux-Enterprise-Server Installation DVD
      Note: baseurl should point to the location of installation DVD.

Join The Discussion