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 3D16F200D5F for ; Mon, 18 Dec 2017 15:07:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3B690160C05; Mon, 18 Dec 2017 14:07:56 +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 80B5C160BF9 for ; Mon, 18 Dec 2017 15:07:55 +0100 (CET) Received: (qmail 79525 invoked by uid 500); 18 Dec 2017 14:07:54 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 79510 invoked by uid 99); 18 Dec 2017 14:07:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2017 14:07:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 99671180633 for ; Mon, 18 Dec 2017 14:07:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=dbruhn.de Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 67e7e08Ybg93 for ; Mon, 18 Dec 2017 14:07:52 +0000 (UTC) Received: from mail.dbruhn.de (vserver.dbruhn.de [51.15.42.118]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5933F5F282 for ; Mon, 18 Dec 2017 14:07:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.dbruhn.de (Postfix) with ESMTP id 3444760237 for ; Mon, 18 Dec 2017 14:07:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at dbruhn.de Received: from mail.dbruhn.de ([127.0.0.1]) by localhost (mail.dbruhn.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ql-_SW8fUmVL for ; Mon, 18 Dec 2017 14:07:43 +0000 (UTC) Received: from _ (roundcube.mailserver_default [172.20.0.3]) (Authenticated sender: dominik@dbruhn.de) by mail.dbruhn.de (Postfix) with ESMTPSA id 2C99E6006A for ; Mon, 18 Dec 2017 14:07:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dbruhn.de; s=mail; t=1513606063; bh=j0AWuWMPi6pDpz6gJ/f/aYKXJmnmT6h2jtTxUadotgA=; h=From:To:Subject; b=QOCQPq5Fqn8u28CRuGDp9SzpMZd1S9pWUsx02amDf0DFuxWFQWiu1EWMh5rwvSOnd SSMWDR9j/HWlehH6UdO4jHHkACRALIyk5fKFS6AoGAgueOpgF+x4a3FkWHR6SR6tAz sK1F42olpUAQNpCjjFpQTfesUSPzQid+HtnV8Fq4= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 18 Dec 2017 15:07:43 +0100 From: dominik@dbruhn.de To: user Subject: Flink 1.4 with cassandra-connector: Shading error Message-ID: X-Sender: dominik@dbruhn.de User-Agent: Roundcube Webmail/1.3.3 archived-at: Mon, 18 Dec 2017 14:07:56 -0000 Hey everyone, I'm trying to migrate one of my jobs to Flink 1.4 and I'm running into a classpath/shading error. What happens is that when Flink calls into Cluster.connect(), somewhere down in the stream, the cassandra library tries to initialize Netty, and I'm getting the following exception: Caused by: java.lang.AssertionError: Cannot locate Netty classes in the classpath:java.lang.ClassNotFoundException: com.datastax.shaded.netty.channel.Channel. Full exception here: https://gist.github.com/anonymous/16a44eabb45ad7f20d551dd29b83d2fb I think this can be explained very easily: 1. The flink-cassandra-connector-1.4 jar contains the Datastax Cassandra driver inside 2. The flink-cassandra-connector-1.4 jar contains a shaded (to org.apache.flink.cassandra.shaded.io.netty) netty 3. The DataStax driver executes the following code when it initializes netty (in NettyUtils starting line 58): ---- try { Class.forName(String.format("%s.%s.channel.Channel", "io", "netty")); shaded = false; } catch (ClassNotFoundException var9) { try { Class.forName("com.datastax.shaded.netty.channel.Channel"); shaded = true; } catch (ClassNotFoundException var8) { throw new AssertionError("Cannot locate Netty classes in the classpath:" + var8); } } ---- Neither of the two packages (io.netty.channel and com.datastax.shaded.netty.channel.Channel) are available and the shaded one from Flink is not in the list and is never used here. My question: Did anyone ever use the cassandra connector on 1.4. As it looks to me it is completely broken and can never work. But maybe I'm failing to see something. I don't include netty in my dependencies, that could of course fix it, but I'm suspecting I will run into more dependency problems then. Here are my dependencies: https://gist.github.com/anonymous/565a0ad017976502a62b2919115b31fd What additional information can I provide? Thanks, Dominik