hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lowe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-15121) Encounter NullPointerException when using DecayRpcScheduler
Date Mon, 09 Jul 2018 20:30:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-15121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Lowe updated HADOOP-15121:
--------------------------------
    Fix Version/s: 3.1.0
                   3.0.1
                   2.8.5
                   2.9.2
                   2.10.0

Thanks, [~Tao Jie]!  I recently ran across this in 2.8 and saw it still wasn't fixed in branch-2.8,
so I committed this to branch-2, branch-2.9, and branch-2.8.  I also saw the Fix Version field
in the JIRA wasn't set when this was committed, so I updated that as well to reflect the 3.x
versions.

> Encounter NullPointerException when using DecayRpcScheduler
> -----------------------------------------------------------
>
>                 Key: HADOOP-15121
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15121
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.8.2
>            Reporter: Tao Jie
>            Assignee: Tao Jie
>            Priority: Major
>             Fix For: 3.1.0, 2.10.0, 3.0.1, 2.9.2, 2.8.5
>
>         Attachments: HADOOP-15121.001.patch, HADOOP-15121.002.patch, HADOOP-15121.003.patch,
HADOOP-15121.004.patch, HADOOP-15121.005.patch, HADOOP-15121.006.patch, HADOOP-15121.007.patch,
HADOOP-15121.008.patch
>
>
> I set ipc.8020.scheduler.impl to org.apache.hadoop.ipc.DecayRpcScheduler, but got excetion
in namenode:
> {code}
> 2017-12-15 15:26:34,662 ERROR impl.MetricsSourceAdapter (MetricsSourceAdapter.java:getMetrics(202))
- Error getting metrics from source DecayRpcSchedulerMetrics2.ipc.8020
> java.lang.NullPointerException
>         at org.apache.hadoop.ipc.DecayRpcScheduler$MetricsProxy.getMetrics(DecayRpcScheduler.java:781)
>         at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.getMetrics(MetricsSourceAdapter.java:199)
>         at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.updateJmxCache(MetricsSourceAdapter.java:182)
>         at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.getMBeanInfo(MetricsSourceAdapter.java:155)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getNewMBeanClassName(DefaultMBeanServerInterceptor.java:333)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:319)
>         at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
>         at org.apache.hadoop.metrics2.util.MBeans.register(MBeans.java:66)
>         at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.startMBeans(MetricsSourceAdapter.java:222)
>         at org.apache.hadoop.metrics2.impl.MetricsSourceAdapter.start(MetricsSourceAdapter.java:100)
>         at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.registerSource(MetricsSystemImpl.java:268)
>         at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:233)
>         at org.apache.hadoop.ipc.DecayRpcScheduler$MetricsProxy.registerMetrics2Source(DecayRpcScheduler.java:709)
>         at org.apache.hadoop.ipc.DecayRpcScheduler$MetricsProxy.<init>(DecayRpcScheduler.java:685)
>         at org.apache.hadoop.ipc.DecayRpcScheduler$MetricsProxy.getInstance(DecayRpcScheduler.java:693)
>         at org.apache.hadoop.ipc.DecayRpcScheduler.<init>(DecayRpcScheduler.java:236)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>         at org.apache.hadoop.ipc.CallQueueManager.createScheduler(CallQueueManager.java:102)
>         at org.apache.hadoop.ipc.CallQueueManager.<init>(CallQueueManager.java:76)
>         at org.apache.hadoop.ipc.Server.<init>(Server.java:2612)
>         at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:958)
>         at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:374)
>         at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:349)
>         at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:800)
> at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.<init>(NameNodeRpcServer.java:415)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:755)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:697)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:905)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:884)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1610)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1678)
> {code}
> It seems that {{metricsProxy}} in DecayRpcScheduler should initiate its {{delegate}}
field in its Initialization method



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message