java.lang.IllegalStateException: Can't get secure connection to https://ambari1.example.com:8443/api/v1/clusters/ClusterDemo/hosts?fields=Hosts%2Fpublic_host_name%2Chost_components%2FHostRoles%2Fcomponent_name. Truststore path or password is not set.

hortonworks.com | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Enabling Https for AmbariServer and troubleshooting secure communication - Hortonworks

    hortonworks.com | 6 months ago
    java.lang.IllegalStateException: Can't get secure connection to https://ambari1.example.com:8443/api/v1/clusters/ClusterDemo/hosts?fields=Hosts%2Fpublic_host_name%2Chost_components%2FHostRoles%2Fcomponent_name. Truststore path or password is not set.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Can't get secure connection to https://ambari1.example.com:8443/api/v1/clusters/ClusterDemo/hosts?fields=Hosts%2Fpublic_host_name%2Chost_components%2FHostRoles%2Fcomponent_name. Truststore path or password is not set.

      at org.apache.ambari.server.controller.internal.URLStreamProvider.getSSLConnection()
    2. org.apache.ambari
      HiveBrowserService.databases
      1. org.apache.ambari.server.controller.internal.URLStreamProvider.getSSLConnection(URLStreamProvider.java:286)
      2. org.apache.ambari.server.controller.internal.URLStreamProvider.processURL(URLStreamProvider.java:172)
      3. org.apache.ambari.server.view.ViewAmbariStreamProvider.getInputStream(ViewAmbariStreamProvider.java:118)
      4. org.apache.ambari.server.view.ViewAmbariStreamProvider.readFrom(ViewAmbariStreamProvider.java:78)
      5. org.apache.ambari.view.utils.ambari.URLStreamProviderBasicAuth.readFrom(URLStreamProviderBasicAuth.java:65)
      6. org.apache.ambari.view.utils.ambari.AmbariApi.requestClusterAPI(AmbariApi.java:173)
      7. org.apache.ambari.view.utils.ambari.AmbariApi.requestClusterAPI(AmbariApi.java:142)
      8. org.apache.ambari.view.utils.ambari.AmbariApi.getHostsWithComponent(AmbariApi.java:99)
      9. org.apache.ambari.view.hive.client.ConnectionFactory.getHiveHost(ConnectionFactory.java:79)
      10. org.apache.ambari.view.hive.client.ConnectionFactory.create(ConnectionFactory.java:68)
      11. org.apache.ambari.view.hive.client.UserLocalConnection.initialValue(UserLocalConnection.java:42)
      12. org.apache.ambari.view.hive.client.UserLocalConnection.initialValue(UserLocalConnection.java:26)
      13. org.apache.ambari.view.utils.UserLocal.get(UserLocal.java:66)
      14. org.apache.ambari.view.hive.resources.browser.HiveBrowserService.databases(HiveBrowserService.java:87)
      14 frames