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

Jared Stehler commented on FLINK-8265:
--------------------------------------

There is a shaded jackson class with jackson2 in the package, but none with the 
path shown. It seems like there is a missing include for jackson here in the 
flink-mesos pom?

{code}
                                                        <artifactSet>
                                                                <includes 
combine.children="append">
                                                                        
<include>com.google.protobuf:protobuf-java</include>
                                                                        
<include>org.apache.mesos:mesos</include>
                                                                        
<include>com.netflix.fenzo:fenzo-core</include>
                                                                </includes>
                                                        </artifactSet>
                                                        <relocations 
combine.children="append">
                                                                <relocation>
                                                                        
<pattern>com.google.protobuf</pattern>
                                                                        
<shadedPattern>org.apache.flink.mesos.shaded.com.google.protobuf</shadedPattern>
                                                                </relocation>
                                                                <relocation>
                                                                        
<pattern>com.fasterxml.jackson</pattern>
                                                                        
<shadedPattern>org.apache.flink.mesos.shaded.com.fasterxml.jackson</shadedPattern>
                                                                </relocation>
                                                        </relocations>
{code}

I was able as a workaround to build a simple shaded jackson deps jar relocated 
to "org.apache.flink.mesos.shaded.com.fasterxml.jackson" and adding that to my 
/lib.


> Missing jackson dependency for flink-mesos
> ------------------------------------------
>
>                 Key: FLINK-8265
>                 URL: https://issues.apache.org/jira/browse/FLINK-8265
>             Project: Flink
>          Issue Type: Bug
>          Components: Mesos
>    Affects Versions: 1.4.0
>            Reporter: Eron Wright 
>            Assignee: Eron Wright 
>            Priority: Critical
>             Fix For: 1.4.1
>
>
> The Jackson library that is required by Fenzo is missing from the Flink 
> distribution jar-file.
> This manifests as an exception in certain circumstances when a hard 
> constraint is configured ("mesos.constraints.hard.hostattribute").
> {code}
> NoClassDefFoundError: 
> org/apache/flink/mesos/shaded/com/fasterxml/jackson/databind/ObjectMapper
>     at com.netflix.fenzo.ConstraintFailure.<clinit>(ConstraintFailure.java:35)
>     at 
> com.netflix.fenzo.AssignableVirtualMachine.findFailedHardConstraints(AssignableVirtualMachine.java:784)
>     at 
> com.netflix.fenzo.AssignableVirtualMachine.tryRequest(AssignableVirtualMachine.java:581)
>     at com.netflix.fenzo.TaskScheduler.evalAssignments(TaskScheduler.java:796)
>     at com.netflix.fenzo.TaskScheduler.access$1500(TaskScheduler.java:70)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to