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.

Log Server/Ambari - Missing Logs in Ambari and "No Data Available" in Log Search

Solved Go to solution

Log Server/Ambari - Missing Logs in Ambari and "No Data Available" in Log Search

Hello. I have a HDF 2.1.2.0 installed with both Infra and Log Search configured. I am missing data both in Log Search and also in Ambari when I try to view logs for services on a host. This seems to have appeared after configuring the cluster for SSL and LDAP is configured for both Ambari and Log Search. Other clusters I have setup in the past few days data is shown on these screens below. The errors included below are coming from the Service Logs screen in Log Search. This screen appears to return current data.

I see this error roughly every 6 minutes in the Ambari Server Log -

2017-06-22 13:22:15,000 ERROR ambari-client-thread-3773 LoggingSearchPropertyProvider - Error occurred while making request to LogSearch service, unable to populate logging properties on this resource

This error appears in the logsearch_app every time I sign in to Log Search. I am able to connect successfully though using my AD account

2017-06-22 13:24:50,286 ERROR qtp1545087375-14 org.apache.ambari.logsearch.web.security.LogsearchFileAuthenticationProvider LogsearchFileAuthenticationProvider.java:81 - Wrong password for user=<MyAccount>

I do not see any errors in the logsearch_feeder logs.

Log Search

16562-logsearch1.jpg

16563-logsearch2.jpg

Ambari - Hosts - Logs screen

16564-ambari.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Log Server/Ambari - Missing Logs in Ambari and "No Data Available" in Log Search

Rising Star

Hi @Kirk DeMumbrane,

Can you post what version of Ambari you're using?

In the LogSearch Technical Preview, which was introduced in Ambari 2.4, there was a bug that would keep the Ambari integration layer (which displays the tail log of components in Ambari itself) from working properly when SSL was enabled.

This issue was resolved in Ambari 2.5:

https://issues.apache.org/jira/browse/AMBARI-19104

If you are working with Ambari 2.5, then you can probably just update the "logsearch_ui_protocol" in the "logsearch-env" configuration type to be "https", restart ambari-server, and the connection between ambari-server and the LogSearch Portal should work properly at that point, and I would expect that the error logs in ambari-server.log would stop occurring.

Regarding the "No Data Available" message, it is possible that the existing logging data in your cluster has expired, and been removed from the Solr data store. Typically, Solr expires logging data from LogSearch after 7 days, unless this has been explicitly configured.

Hope this helps!

Bob

View solution in original post

3 REPLIES 3
Highlighted

Re: Log Server/Ambari - Missing Logs in Ambari and "No Data Available" in Log Search

Rising Star

Hi @Kirk DeMumbrane,

Can you post what version of Ambari you're using?

In the LogSearch Technical Preview, which was introduced in Ambari 2.4, there was a bug that would keep the Ambari integration layer (which displays the tail log of components in Ambari itself) from working properly when SSL was enabled.

This issue was resolved in Ambari 2.5:

https://issues.apache.org/jira/browse/AMBARI-19104

If you are working with Ambari 2.5, then you can probably just update the "logsearch_ui_protocol" in the "logsearch-env" configuration type to be "https", restart ambari-server, and the connection between ambari-server and the LogSearch Portal should work properly at that point, and I would expect that the error logs in ambari-server.log would stop occurring.

Regarding the "No Data Available" message, it is possible that the existing logging data in your cluster has expired, and been removed from the Solr data store. Typically, Solr expires logging data from LogSearch after 7 days, unless this has been explicitly configured.

Hope this helps!

Bob

View solution in original post

Highlighted

Re: Log Server/Ambari - Missing Logs in Ambari and "No Data Available" in Log Search

Hello Bob,

Thanks for your reply. The ambari version which is installed is 2.4.2.0. The bug explains the issue I am having.

I will check out your suggestion on the Solr data store.

Thanks

Kirk

Highlighted

Re: Log Server/Ambari - Missing Logs in Ambari and "No Data Available" in Log Search

Rising Star

Hi @Kirk DeMumbrane,

Glad this information was useful.

If this resolves your problem, can you please accept this answer?

Thanks,

Bob

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