[ 
https://issues.apache.org/jira/browse/FLINK-6192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15942785#comment-15942785
 ] 

ASF GitHub Bot commented on FLINK-6192:
---------------------------------------

GitHub user WangTaoTheTonic opened a pull request:

    https://github.com/apache/flink/pull/3617

    [FLINK-6192]reuse zookeeper client created by CuratorFramework

    Now in yarn mode, there're three places using zookeeper client(web monitor, 
jobmanager and resourcemanager) in ApplicationMaster/JobManager, while there're 
two in TaskManager. They create new one zookeeper client when they need them.
    
    I believe there're more other places do the same thing, but in one JVM, one 
CuratorFramework is enough for connections to one zookeeper client, so we need 
a singleton to reuse them.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/WangTaoTheTonic/flink FLINK-6192

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/3617.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3617
    
----
commit 3d0c164a0d41fcd5c88fe7b959062827eb1a5909
Author: WangTaoTheTonic <[email protected]>
Date:   2017-03-27T07:43:01Z

    reuse zookeeper client created by CuratorFramework

----


> reuse zookeeer client created by CuratorFramework
> -------------------------------------------------
>
>                 Key: FLINK-6192
>                 URL: https://issues.apache.org/jira/browse/FLINK-6192
>             Project: Flink
>          Issue Type: Improvement
>          Components: JobManager, YARN
>            Reporter: Tao Wang
>            Assignee: Tao Wang
>
> Now in yarn mode, there're three places using zookeeper client(web monitor, 
> jobmanager and resourcemanager) in ApplicationMaster/JobManager, while 
> there're two in TaskManager. They create new one zookeeper client when they 
> need them.
> I believe there're more other places do the same thing, but in one JVM, one 
> CuratorFramework is enough for connections to one zookeeper client, so we 
> need a singleton to reuse them.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to