Created on 07-14-201711:20 AM - edited 08-17-201911:57 AM
After upgrading Ambari (not entirely sure which version but think it was Ambari 2.4.2 to 2.5.0.3), Smartsense View came up unavailable with these messages:
"Service Unavailable"
"The SmartSense service is currently unavailable. Please make sure the SmartSense Server is up and running."
See screenshot
In the /var/log/ambari-server/ambari-server.log log you many see entries like this when you click on the Smartsense view.
14 Jul 2017 11:14:05,523 ERROR [ambari-client-thread-467377] ServerProxy:162 - Failed to execute GET /recommendations. Reason: Connection refused
14 Jul 2017 11:14:14,734 ERROR [ambari-client-thread-467506] ServerProxy:162 - Failed to execute GET /context. Reason: Connection refused
14 Jul 2017 11:14:14,900 ERROR [ambari-client-thread-467507] ServerProxy:162 - Failed to execute GET /checkconfig. Reason: Connection refused
diff'ing the hst-server.ini config file against previous saved config versions yielded this:
Find this in Ambari Smartsense Config tab under Advanced hst-server-conf and add the hostname of the HST server to the server.url property (can't share the screenshot because weirdly his property ghosted into view but now I can't re-find it in Ambari - know it's there because under the [server] section in the hst-server.ini there is a url = http://<hst server name>:9000 - this strangeness was probably the reason it took me so long to find the issue in the first place).
Restart Smartsense via Ambari and the Smartsense View was working as usual.