loading table of contents...

In-Place Upgrade

When using SmartSense 1.1, the upgrade to 1.2 takes advantage of upgradable packages allowing for an upgrade without uninstallation. The following steps should be addressed before proceeding with the upgrade:

  1. Perform on of the following:

    • Ambari Installation: Log in to Ambari web UI and stop the SmartSense service.

    • Non-Ambari Installation: On the host running the HST Server, first stop the process:

      # hst stop
  2. If using Ambari 2.2.0, HST 1.2 is included in the Ambari repository and does not have to be separately downloaded. If using prior versions of Ambari such as 2.0 and 2.1.0-2.1.2, or if this is a non-Ambari installation, the HST 1.2 packages must be downloaded from the Tools tab of the Hortonworks support portal (https://support.hortonworks.com).

  3. Upgrade binaries on the HST Server and all HST agents. This should be done on every node in the cluster.

  4. Choose Ambari 2.2.0 Installations, or Ambari 2.0 and 2.1.0-2.1.2 and non-Ambari Installations:

    • Ambari 2.2.0 Installations:

      The following steps assume that the Ambari 2.2.0 repository is configured on all nodes in the cluster.

      • For RHEL/CentOS:

        yum clean all
        yum info smartsense-hst

        In the info output, visually validate that there is an available version containing "1.2.2”:

        yum upgrade smartsense-hst
      • For SLES:

        zypper clean
        zypper info smartsense-hst

        In the info output, visually validate that there is an available version containing "1.2.2":

        zypper up smartsense-hst
      • For Ubuntu/Debian:

        apt-get clean all
        apt-get update 
        apt-cache show smartsense-hst | grep Version 

        In the info output, visually validate that there is an available version containing "1.2.2":

        apt-get install smartsense-hst 
    • Ambari 2.0 and 2.1.0-2.1.2 and non-Ambari Installations:

      The following steps assume that the HST 1.2 package has been downloaded from the Tools tab of the Hortonworks support portal and is available on all nodes in the cluster. The following commands must be run on all nodes in the cluster to ensure the entire cluster is upgraded:

      • For RHEL/CentOS/SLES:

        rpm -Uvh smartsense-hst-$HST_VERSION.rpm
      • For Ubuntu/Debian:

        dpkg -i smartsense-hst-$HST_VERSION.deb
  5. Upgrade Ambari Service and View:

    You need to update the SmartSense service and view with the HST 1.2 service definitions and new view deployment. You can do this by running the following command as the root user from the machine running the Ambari Server:

    # hst upgrade-ambari-service
    Please enter Ambari Server hostname (ambari-server.hortonworks.local): 
    Please enter Ambari Server port (8080): 
    Please enter Ambari admin user id (admin): 
    Please enter password for admin: 
    
    Un-installing old view ...
    Installing new view ...
    Removing deprecated alerts ...
    Updating SmartSense configurations in Ambari ...
    
    SmartSense service upgrade completed!
    NOTE: It is required to restart Ambari Server for changes to reflect. Please restart ambari using 'ambari-server restart'
  6. Restart the Ambari Server

    # ambari-server restart
  7. After the packages are upgraded and, if using Ambari, HST upgrade is complete, restart SmartSense:

    • Ambari Installation: Log in to Ambari web UI and start SmartSense service.

    • Non-Ambari Installation: Start HST manually:

      # hst start
  8. To ensure that all components have been successfully upgraded, trigger a SmartSense Analysis capture. This capture will capture all services on all hosts in the cluster. Ensure that the capture successfully completes.