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

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

GitHub user tillrohrmann opened a pull request:

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

    [FLINK-5496] [mesos] Relocate Mesos Protobuf dependency to avoid version 
conflicts

    This PR is based on #3155.
    
    Only relocate Mesos Protobuf dependency in flink-mesos. This avoids 
problems with Mesos
    because Flink pulls in Protobuf 2.5.0 via Flakka.

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

    $ git pull https://github.com/tillrohrmann/flink mesosFixRelocation

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

    https://github.com/apache/flink/pull/3156.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 #3156
    
----
commit e68688f31ead68851a0f768a7270d8bc1b5f9ac8
Author: Till Rohrmann <[email protected]>
Date:   2017-01-16T13:01:10Z

    [FLINK-5496] [mesos] Relocate Mesos Protobuf dependency to avoid version 
conflicts
    
    Only relocate Mesos Protobuf dependency in flink-mesos. This avoids 
problems with Mesos
    because Flink pulls in Protobuf 2.5.0 via Flakka.

commit dd2f56568745ade036de4d0ee333e7e7fdb47400
Author: Till Rohrmann <[email protected]>
Date:   2017-01-16T13:14:18Z

    [FLINK-5495] [mesos] Provide executor to ZooKeeperMesosWorkerStore
    
    The ZooKeeperMesosWorkerStore instantiates a ZooKeeperStateHandleStore 
which requires an
    Executor instance. This executor is now given to the 
ZooKeeperMesosWorkerStore.

----


> ClassCastException when using Mesos HA mode
> -------------------------------------------
>
>                 Key: FLINK-5496
>                 URL: https://issues.apache.org/jira/browse/FLINK-5496
>             Project: Flink
>          Issue Type: Bug
>          Components: Mesos
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Till Rohrmann
>            Assignee: Till Rohrmann
>            Priority: Critical
>             Fix For: 1.2.0, 1.3.0
>
>
> When using the Mesos' HA mode, one cannot start the Mesos appmaster, because 
> the following class cast exception occurs:
> {code}
> java.lang.ClassCastException: 
> org.apache.flink.shaded.org.apache.curator.framework.imps.CuratorFrameworkImpl
>  cannot be cast to 
> org.apache.flink.mesos.shaded.org.apache.curator.framework.CuratorFramework
>       at 
> org.apache.flink.mesos.util.ZooKeeperUtils.startCuratorFramework(ZooKeeperUtils.java:38)
>       at 
> org.apache.flink.mesos.runtime.clusterframework.MesosApplicationMasterRunner.createWorkerStore(MesosApplicationMasterRunner.java:510)
>       at 
> org.apache.flink.mesos.runtime.clusterframework.MesosApplicationMasterRunner.runPrivileged(MesosApplicationMasterRunner.java:320)
>       at 
> org.apache.flink.mesos.runtime.clusterframework.MesosApplicationMasterRunner$1.call(MesosApplicationMasterRunner.java:178)
>       at 
> org.apache.flink.mesos.runtime.clusterframework.MesosApplicationMasterRunner$1.call(MesosApplicationMasterRunner.java:175)
>       at 
> org.apache.flink.runtime.security.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:29)
>       at 
> org.apache.flink.mesos.runtime.clusterframework.MesosApplicationMasterRunner.run(MesosApplicationMasterRunner.java:175)
>       at 
> org.apache.flink.mesos.runtime.clusterframework.MesosApplicationMasterRunner.main(MesosApplicationMasterRunner.java:135)
> {code}
> It seems as if the {{flink-mesos}} module relocates the curator dependency in 
> another namespace than {{flink-runtime}}. Not sure why this is done. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to