Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B2B3A200B4A for ; Wed, 20 Jul 2016 14:24:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B149D160A73; Wed, 20 Jul 2016 12:24:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 05637160A64 for ; Wed, 20 Jul 2016 14:24:06 +0200 (CEST) Received: (qmail 66857 invoked by uid 500); 20 Jul 2016 12:24:01 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 66840 invoked by uid 99); 20 Jul 2016 12:24:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2016 12:24:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 923A9C7592 for ; Wed, 20 Jul 2016 12:24:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.721 X-Spam-Level: X-Spam-Status: No, score=-0.721 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=zalando-de.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5jpZDDXT20jS for ; Wed, 20 Jul 2016 12:23:58 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id EB596611F3 for ; Wed, 20 Jul 2016 12:23:52 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id o80so66404236wme.1 for ; Wed, 20 Jul 2016 05:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zalando-de.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=+Z8QWqVwhMIxCCyu2Rj5muOS4Imq9pIvlJ014EDCbcw=; b=HHuua1xVrplTzDsaGQ/4zC4ih8zXoAeMHLmid1oLoyn4gMGILTjWJ6OMx3qdgr8e50 TSan+4MYnBs50W6RoP3unA/qGxdLl7erYQ3hECB450Oo/K75NkRREV4xUM5CPMgMuYBM 1JXsVLQyT6yi2qAHZllXqLk2ykH/D5YinSuMsUVNwwML280FNpYSLl4TbYNSCb87odPN u/aMyFhUyMYdyluD7QyDBW90jMNDmYR9sQTEEYD8nl6gNIq8YI/xCFASMJNW/gjWiXvG z6ecYnWLIDxyj2A792Lmsh1FZx6gg0O79xs+Ty7RD5wVrjfFiYYu2PK8lEhVvOsFIsTP XC/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=+Z8QWqVwhMIxCCyu2Rj5muOS4Imq9pIvlJ014EDCbcw=; b=ZaVMuWFiDGq8I2jTjdOHfwqwADfJatS8lnJPknHcMuvk4iaphH2eD2/qRdaD/f0/+J lrGHjuquITgYHN+Ix6aMPgX2rzy6lt8cZRjXre5yKTBV1wTsSF1g0TvRvSmMnpN7lpf4 c1vnFEFzUY431TrtbWuTaJGNoHaiWQb59MITbwEU+Nk2LVD8N6QwvB0X2XhW2jx1jVaO T+UBoWnhi9NnwWehU8ONRVho+sbg3XVQ1fjSqhCrlohOcIvP0GRyVO2QFTeAg2LuZpAH JjWwq5HAfV4ej8brOCao/sOHGExVZ14zLkPEsm4Xw3kwu2Pi/XdVip4K6syJ9cRhCcIx 87EQ== X-Gm-Message-State: ALyK8tJnG7l/I+44wGdD83WTy+x/f0/sloj67NgO2MO8AmgF7VEjVQ0Uo9wy/BqwhLiHG/2n X-Received: by 10.28.209.130 with SMTP id i124mr10839295wmg.57.1469017430769; Wed, 20 Jul 2016 05:23:50 -0700 (PDT) Received: from [10.169.130.200] ([94.135.236.148]) by smtp.gmail.com with ESMTPSA id f3sm1031116wjt.30.2016.07.20.05.23.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jul 2016 05:23:49 -0700 (PDT) Subject: Re: Class loading and job versioning To: user@flink.apache.org References: <7269292b-bebe-f026-9406-06f79ee47215@zalando.de> From: Michal Budzyn Message-ID: <99f82585-5888-5529-2ac8-a3ea7dca7312@zalando.de> Date: Wed, 20 Jul 2016 14:23:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Wed, 20 Jul 2016 12:24:07 -0000 Thanks for the prompt replay. You are right. The conflict was between "com.fasterxml.jackson.core" libs. I am just wondering. If the the jobs were separted from the platform, the jobs libs should have precedence and no versioning problem should have happened. Regards, Michal On 20.07.2016 14:00, Maximilian Michels wrote: > Hi Michal, > > I couldn't find Joda in flink-dist. Possibly there is some other clash? > > There are two potential issues here: > > 1) Flink shades some libraries (Guava) but not all. If you use a > version of a library in your Flink job which doesn't match the one in > flink-dist, you're bound for trouble. > > 2) Flink separates jobs from each other to avoid potential class > version mismatches. Each job has its own classloader. In this sense, > "job versioning" is supported. > > Cheers, > Max > > On Wed, Jul 20, 2016 at 1:02 PM, Michal Budzyn > wrote: >> Hi all, >> We had a class versioning problem within Flink Job. >> The job uses Joda 2.6, but the flink-dist 1.0.3 packages 2.5. >> The problem was solved by relocating job classes with shade plug-in. >> >> Does flink separate jobs from each other to avoid class conflicts between >> them and the platform ? >> Is job versioning supported or is shading always required ? >> >> Regards, >> Michal >>