Striim 3.9.6 documentation

Completing the upgrade

  1. Complete the steps in Upgrading Striim in CentOS or Upgrading Striim in Ubuntu.

  2. If the metadata repository is hosted on Derby, skip this step.

    If the metadata repository is hosted on Oracle, log in to sqlplus as the user created in Configuring Oracle to host the metadata repository and run the /opt/striim/conf/DefineMetadataReposOracle.sql script to create new repository tables.

    If the metadata repository is hosted on PostgreSQL, log in to psql as the user created in Configuring PostgreSQL to host the metadata repository and run the /opt/striim/conf/DefineMetadataReposPostgres.sql script to create new repository tables.

  3. If upgrading from 3.8.4 or later, enter the following command to copy your Striim configuration (adjust as necessary if you backed up your files to a different location):

    cp /opt/striim/conf-backup/startUp.properties /opt/striim/conf

    If upgrading from 3.8.3 or earlier, enter the following commands to copy the Striim configuration parameters from striim.conf (deprecated in 3.8.4) to striim/conf/startUp.properties:

    cd /opt/striim
    sudo bin/writeStriimConfToStartUp.sh

    If when Preparing to upgrade Striim you moved the configuration files to a directory other than /opt/striim/conf-backup, specify the directory as an argument, for example, sudo bin/writeStriimConfToStartUp.sh /home/myhome.

  4. Import the metadata. On the server where you exported the metadata when Preparing to upgrade Striim, enter the following commands:

    If the metadata repository is hosted on Derby:

    cd /opt/striim
    sudo bin/tools.sh -A import -F export.json -f <old version>

    For example, if upgrading from 3.8.3:

    sudo bin/tools.sh -A import -F export.json -f 3.8.3

    If the metadata repository is hosted on Oracle:

    cd /opt/striim
    sudo bin/tools.sh -A import -F export.json -f <old version> -r oracle

    If the metadata repository is hosted on PostgreSQL:

    cd /opt/striim
    sudo bin/tools.sh -A import -F export.json -f <old version> -r postgres
  5. When import is complete, reboot that system to verify that Striim restarts automatically.

    Alternatively, to start without rebooting:

    For CentOS 6.x or Ubuntu 14.04, enter the following commands:

    • If the metadata repository is hosted on Derby, on the Derby host only: sudo start striim-dbms

    • Wait ten seconds, then enter:

      sudo start striim-node 
      sudo tail -F /opt/striim/logs/striim-node.log 

    For CentOS 7.x or Ubuntu 16.04, enter the following commands:

    • If the metadata repository is hosted on Derby, on the derby host only:

      sudo systemctl enable striim-dbms
      sudo systemctl start striim-dbms 
    • Wait ten seconds, then enter:

      sudo systemctl enable striim-node
      sudo systemctl start striim-node 
      sudo tail -F /opt/striim/logs/striim-node.log 

    When you see the message Please go to ... to administer, or use console, Striim is running.

  6. Log in to verify that Striim is running, then reboot the other servers in the cluster, or start each server manually using the commands above.

  7. Upgrade and start all Forwarding Agents (see Upgrading Forwarding Agents).