Perform in-place upgrade with Ambari 2.5 or newer
You can upgrade to SmartSense 1.5.x without uninstalling SmartSense:
- Log in to Ambari web UI and stop the SmartSense service.
-
Upgrade binaries on the HST server and all HST agents on every
node in the cluster, assuming that the Ambari repository is configured
on all nodes in the cluster:
- RHEL or
CentOS:
In theyum clean all yum info smartsense-hst
info
output, visually validate that there is an available version containing "1.5.x”:yum upgrade smartsense-hst
- SLES:
In thezypper clean zypper info smartsense-hst
info
output, visually validate that there is an available version containing "1.5.x":zypper up smartsense-hst
- Ubuntu or
Debian:
In the info output, visually validate that there is an available version containing "1.5.x":apt-get clean all apt-get update apt-cache show smartsense-hst | grep Version
apt-get install smartsense-hst
- RHEL or
CentOS:
-
Upgrade Ambari service and Ambari view by running the hst
upgrade-ambari-service command as the root user from the machine
running the Ambari server. You can run the command in the interactive or
non-interactive mode:
Interactive mode example:
Non-interactive mode example:# 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'
# hst upgrade-ambari-service -u admin -p 8080 -H ambari-server.hortonworks.local -P MySecurePassword123 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'
-
Restart the Ambariserver:
# ambari-server restart
- After the packages are upgraded and the HST upgrade is complete, log in to Ambari web UI and start all SmartSense services.
-
Skip this step if
your current version is 1.3 or higher: Since SmartSense 1.3.0 introduced two
new components, activity analyzer and Activity Explorer, you need to add these
components to Ambari. To do this:
- In Ambari web UI, click on Hosts and then navigate to the host on which you want to
install the components.Note
Refer to the Activity analyzer placement documentation for advice on which hosts to choose when placing the activity analyzer.
- Click on Add and add activity analyzer and then activity explorer component.
- Start activity analyzer and activity explorer components by selecting Start next to the component name.
- In Ambari web UI, click on Hosts and then navigate to the host on which you want to
install the components.
- Ensure that all components are upgraded by triggering a SmartSense analysis capture, and ensure that the capture finishes successfully.
-
If you have HST gateway installed, you need to also upgrade your HST gateway:
- If the HST gateway is installed on the same node as HST Server or HST Agent, then the HST gateway will get upgraded along with them.
- If the HST gateway is a standalone node outside of the cluster, perform upgrade steps described in the documentation related to upgrading SmartSense gateway.