Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to view smartsense recommendations and it is showing blank page

Highlighted

Unable to view smartsense recommendations and it is showing blank page

Unable to view smart sense recommendations and it is showing blank page .... please suggest me

109392-1560767356285.png


logs are below ..

----------------------------------------------

-------------------------hst-agent.log-------------------
INFO 2019-06-16 02:03:36,608 metrics.py:84 - Failed to collect metrics. Reason:Requested 10 metrics for 1 hosts in HOURS
precision for the time range of 7776000 seconds. Estimated resultset size of 21600 is greater than the limit of 15840.
Request lower precision or fewer number of metrics or hosts. Alternatively, increase the limit value through
ams-site:timeline.metrics.service.default.result.limit config


-------------------------hst-server.log-------------------

2019-06-17 06:34:33,474 INFO [qtp1041255755-76] TrustDBManager:106 - customTrustDB not found.
2019-06-17 06:34:33,474 INFO [qtp1041255755-76] GatewayCertValidator:93 - validating self signed: CN=smartsense-dev.
hortonworks.com,O=Hortonworks\, Inc,L=Santa Clara,ST=California,C=US
2019-06-17 06:34:33,474 INFO [qtp1041255755-76] GatewayCertValidator:134 - validating cert: CN=smartsense-dev.hortonworks.
com,O=Hortonworks\, Inc,L=Santa Clara,ST=California,C=US against trusted key of trusted cert: CN=smartsense-dev.hortonworks.
com,O=Hortonworks\, Inc,L=Santa Clara,ST=California,C=US
2019-06-17 06:34:33,475 WARN [qtp1041255755-76] GatewayCertValidator:151 - validation failed cert: CN=smartsense-dev.
hortonworks.com,O=Hortonworks\, Inc,L=Santa Clara,ST=California,C=US
2019-06-17 06:34:33,475 WARN [qtp1041255755-76] GatewayCertValidator:152 - Signature match failure can be ignored if this is
not root CA.
2019-06-17 06:34:33,475 WARN [qtp1041255755-76] GatewayCertValidator:153 - java.security.SignatureException: Signature does
not match.


-----------------------/var/log/ambari-server/smartsense-view/smartsense-view.log-----------------------------

2019-06-17 09:30:47,009 ERROR [ambari-client-thread-16592] AmbariApiResource:149 - Failed to read from ambari
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.
provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)







5 REPLIES 5
Highlighted

Re: Unable to view smartsense recommendations and it is showing blank page

Super Mentor

@BVS REDDY

We see the PKIX error:

ERROR [ambari-client-thread-16592] AmbariApiResource:149 - Failed to read from ambarijavax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetat sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

.

As we see that you are running Ambari Server on HTTPS port 8443. Hence in order to access some of the views like Yarn Queue Manager, SmartSense views ....etc You should configure Truststore for Ambari Server and then import the AmbariServer's Certificate inside the same truststore. Then restart AmbariServer.

Please refer to the following doc to know about how to : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-security/content/set_up_truststor...


Highlighted

Re: Unable to view smartsense recommendations and it is showing blank page

Thanks for the update @Jay Kumar

On the Ambari Server, create a new keystore that will contain the Ambari Server's HTTPS certificate.

  1. keytool -import -file <path_to_the_Ambari_Server's_SSL_Certificate> -alias ambari-server -keystore ambari-server-truststore


here what is the path_to_the_Ambari_Server's_SSL_Certificate ???

Highlighted

Re: Unable to view smartsense recommendations and it is showing blank page

Super Mentor

@BVS REDDY

You can get Ambari Server certificate by running the following kind of command and write them down to /etc/ambari-server/conf/ambari_certificate.cr:

# echo | openssl s_client -showcerts -connect xxxxxxxxxx:8443 2>&1 | sed --quiet '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/ambari-server/conf/ambari_certificate.cr


.

Please replace the "xxxxxxxxxx" with your Ambari Server hostname.

Highlighted

Re: Unable to view smartsense recommendations and it is showing blank page

Super Mentor

@BVS REDDY

Please refer to another HCC article which is written for Yarn Queue Manager View ... PKIX path build failure error ...
https://community.hortonworks.com/content/supportkb/150265/errorpkix-path-building-failed-sunsecurit...

.

So you will need to refer to the same steps to configure and setup your Ambari Server truststore and import the Amabri Server certificate to it.

Highlighted

Re: Unable to view smartsense recommendations and it is showing blank page

Thanks for the update @Jay kumar sen sharma ...

On the Ambari Server, create a new keystore that will contain the Ambari Server's HTTPS certificate.

keytool -import -file <path_to_the_Ambari_Server's_SSL_Certificate> -alias ambari-server -keystore ambari-server-truststore


here what is the path_to_the_Ambari_Server's_SSL_Certificate ???

Don't have an account?
Coming from Hortonworks? Activate your account here