You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2019/01/11 01:22:00 UTC
[jira] [Comment Edited] (HDFS-14162) Balancer should work with
ObserverNode
[ https://issues.apache.org/jira/browse/HDFS-14162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16739920#comment-16739920 ]
Konstantin Shvachko edited comment on HDFS-14162 at 1/11/19 1:21 AM:
---------------------------------------------------------------------
I see that {{CombinedProxyBuilder}} combines methods from multiple interfaces into a HashMap, in order to find them during invocation.
Can the same be done by calling {{Proxy.newProxyInstance(ClassLoader, Class<?>[] interfaces, InvocationHandler)}} where {{interfaces = \{proxy1, proxy2, proxy3\}}}? I believe {{newProxyInstance()}} should do something similar internally, so we wont need custom wrappers to emulate this.
was (Author: shv):
I see that {{CombinedProxyBuilder}} combines methods from multiple interfaces into a HashMap, in order to find them during invocation.
Can the same be done by calling {{Proxy.newProxyInstance(ClassLoader, Class<?>[] interfaces, InvocationHandler)}} where {{interfaces = {proxy1, proxy2, proxy3}}}? I believe {{newProxyInstance()}} should do something similar internally, so we wont need custom wrappers to emulate this.
> Balancer should work with ObserverNode
> --------------------------------------
>
> Key: HDFS-14162
> URL: https://issues.apache.org/jira/browse/HDFS-14162
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Konstantin Shvachko
> Assignee: Erik Krogen
> Priority: Major
> Attachments: HDFS-14162-HDFS-12943.wip0.patch, HDFS-14162.000.patch, testBalancerWithObserver.patch
>
>
> Balancer provides a substantial RPC load on NameNode. It would be good to divert Balancer RPCs {{getBlocks()}}, etc. to ObserverNode. The main problem is that Balancer uses {{NamenodeProtocol}}, while ORPP currently supports only {{ClientProtocol}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org