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.

Ambari logs warning

Ambari logs warning

New Contributor

Hi all,

I monitor ambari-server.log and sometime I get this warning. My Ambari running without any alerts.

So Is that some issue happen for my Ambari server or this is normal.

 WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.ActiveWidgetLayoutService.getServices(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
02 Nov 2016 10:50:37,126  WARN [ambari-client-thread-26] Errors:173 - The following warnings have been detected with resource and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.WidgetService.getServices(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.WidgetService.getService(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String), should not consume any entity.
02 Nov 2016 10:50:42,629  WARN [ambari-client-thread-104] Errors:173 - The following warnings have been detected with resource and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.HostComponentService.getHostComponents(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.HostComponentService.getHostComponent(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String,java.lang.String), should not consume any entity.
02 Nov 2016 10:51:00,486  WARN [ambari-client-thread-28] Errors:173 - The following warnings have been detected with resource and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.WidgetLayoutService.getServices(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.WidgetLayoutService.getService(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String), should not consume any entity.

and some time with this.

02 Nov 2016 10:50:32,303  INFO [ambari-client-thread-27] StackAdvisorRunner:71 -     advisor script stderr: 2016-11-02 10:50:32,275 - Couldn't retrieve 'capacity-scheduler' from services.
2016-11-02 10:50:32,276 - Couldn't retrieve 'capacity-scheduler' from services.
2016-11-02 10:50:32,277 - Couldn't retrieve 'capacity-scheduler' from services.
2016-11-02 10:50:32,277 - Couldn't retrieve 'capacity-scheduler' from services.
2016-11-02 10:50:32,278 - Couldn't retrieve 'capacity-scheduler' from services.
2016-11-02 10:50:32,279 - Couldn't retrieve 'capacity-scheduler' from services.

Thanks,

3 REPLIES 3

Re: Ambari logs warning

@Hoang Le

The WARNINGs related to "javax.ws.rs.core.Response" ... "should not consume any entity" is not an issue. It can be safely ignored. As this message can be seen in al ambari-server logs.

And the second message "Couldn't retrieve 'capacity-scheduler'from services" is an INFO message.

Re: Ambari logs warning

New Contributor

@jss

So can you explain to me the "Couldn't retrieve 'capacity-scheduler'from services" message ?

Thanks.

Re: Ambari logs warning

@Hoang Le

As per ambari source code: https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.6/servic...

If the "if"capacity-scheduler"in services['configurations']:" condition is false then you will get the following message:

Couldn't retrieve 'capacity-scheduler' from services.

So please check your services if you haev it present or not.

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