Details
Description
My colleagues working with Yarn log aggregation found that they were getting this message spammed in their logs when they used an s3a:// URI for logs (yarn.nodemanager.remote-app-log-dir):
getting attribute Region of com.amazonaws.management:type=AwsSdkMetrics threw an exception javax.management.RuntimeMBeanException: java.lang.NullPointerException at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839) at <snip> Caused by: java.lang.NullPointerException at com.amazonaws.metrics.AwsSdkMetrics.getRegion(AwsSdkMetrics.java:729) at com.amazonaws.metrics.MetricAdmin.getRegion(MetricAdmin.java:67) at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
This happens even though the aws sdk cloudwatch metrics reporting was disabled (default), which is a bug.
I filed a github issue and it looks like a fix should be coming around SDK release 1.11.229 or so.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-15264 AWS "shaded" SDK 1.11.271 is pulling in netty 4.1.17
- Resolved
- is related to
-
HADOOP-15642 Update aws-sdk version to 1.11.375
- Resolved
- relates to
-
HADOOP-14890 Move up to AWS SDK 1.11.199
- Resolved
-
HADOOP-9991 Fix up Hadoop POMs, roll up JARs to latest versions
- Open