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 475E7200D49 for ; Fri, 24 Nov 2017 11:57:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 45C2E160BF2; Fri, 24 Nov 2017 10:57:45 +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 638CD160BEE for ; Fri, 24 Nov 2017 11:57:44 +0100 (CET) Received: (qmail 68018 invoked by uid 500); 24 Nov 2017 10:57:43 -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 68007 invoked by uid 99); 24 Nov 2017 10:57:43 -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; Fri, 24 Nov 2017 10:57:42 +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 2C1BEC126C for ; Fri, 24 Nov 2017 10:57:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.098 X-Spam-Level: ** X-Spam-Status: No, score=2.098 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KB_WAM_FROM_NAME_SINGLEWORD=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-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 8qQekvwPMu7P for ; Fri, 24 Nov 2017 10:57:39 +0000 (UTC) Received: from mail-ua0-f172.google.com (mail-ua0-f172.google.com [209.85.217.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 712855F566 for ; Fri, 24 Nov 2017 10:57:39 +0000 (UTC) Received: by mail-ua0-f172.google.com with SMTP id g12so14499407uaa.1 for ; Fri, 24 Nov 2017 02:57:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=s77374FWSLNQWQbTuV2HrxKWMNacoiTUbMt1k7uO528=; b=NUs3FIDnotpbr6Gzvd7kpZOZ4a+3IXhSnsFlyEvGP3+o424/cN9LzPZLpgKQIwtSMr xiaFNuhys5grIoYHcx6uK32FzQXaSCgaHG/31phEyLlRFE4hJ8z6a82AxansTWKfIEM3 UanbWMJferPUgaDrX8rEZp4oAMjTo1HSm3mdEUSJDZFkgzJV1M/dEVkq96mMLuZzQiEO 7EeB8PYsfAwf6KtV1gNX7aPcdpzy2tjI0vD7bUUsaVEcehiW8jG6ytoC4cRbs7RWG4ru oD5OfLkKkopUhg9en3yNANhCgHynrHXYoOMsb1Qkb151w0FCZdsMGMDyBjFlOpfmX13V yCUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=s77374FWSLNQWQbTuV2HrxKWMNacoiTUbMt1k7uO528=; b=ASvhRerkphhqO3IgOylHSOHQngpFqGKl5hJNoO1voTD9/hyF6WD3WgiCTrG/H8y5Lt RF7cFcTrQ6yGN2pKX1bKV6/6lXj2atqVMIPhl377wypu3p2Pno7BWXYIMdWg5J9GMtIg nBkUXYiqXfMpSEU7vpCZc5y8GR0Mf6/SCzExd83q47OEBgi5J3W74tTTLc7o3QrxgAnK 3F9KrMf2Wv3peTR1XqbBKZOFxKrg+9DGXBbffTBV/yvG+JDIQbI/eKLS3fpYlMQWn7rV 3ss2RMUlNZqf/DoFq2hzi9udW/V9W0n9stmwQr2isb2ytjJ/9ICvRiyNXX0/Dov5uAul mtAg== X-Gm-Message-State: AJaThX6fXjMZDh/Nh7UHFZ2XdRK0PoS3gYujvb3LebKhz82+sB1KZMi3 Hw7V7SGyNBMekiLyjpUy+Qryu54lCXrtYhEHAHdY+/vz X-Google-Smtp-Source: AGs4zMaGAQoCe0om7cdnoCJrKXiyl4fbtgWxRh9ReIiGG4sZb9Ht4fav1a9jFt4Zy6aTISRb/w3fhj2nvSn6vx9iz78= X-Received: by 10.176.20.225 with SMTP id f30mr13757743uae.174.1511521053677; Fri, 24 Nov 2017 02:57:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.106.70 with HTTP; Fri, 24 Nov 2017 02:56:53 -0800 (PST) In-Reply-To: <20171117132211.0e304a143717be2628beec81@wegtam.com> References: <20171117132211.0e304a143717be2628beec81@wegtam.com> From: Fabian Hueske Date: Fri, 24 Nov 2017 11:56:53 +0100 Message-ID: Subject: Re: Accessing Cassandra for reading and writing To: =?UTF-8?B?QW5kcsOpIFNjaMO8dHo=?= Cc: user Content-Type: multipart/alternative; boundary="001a1145ab00799e47055eb86b5e" archived-at: Fri, 24 Nov 2017 10:57:45 -0000 --001a1145ab00799e47055eb86b5e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Andre, Do you have a batch or streaming use case? Flink provides Cassandra Input and OutputFormats for DataSet (batch) jobs and a Cassandra Sink for DataStream applications. The is no Cassandra source for DataStream applications. Regarding your error, this looks more like a Zepplin configuration issue to me. It seems that the JAR file is not correctly added to the classpath. Best, Fabian 2017-11-17 13:22 GMT+01:00 Andr=C3=A9 Sch=C3=BCtz : > Hi, > > we want to read and write from and to Cassandra. > > We found the Flink-Cassandra connector and added the JAR to the lib > folder of the running Flink cluster (local machine). > > Trying to access the Cassandra database by adding the import > to a notebook within Apache Zeppelin, resulted in the following error: > > import org.apache.flink.streaming.connectors.cassandra._ > > error: object connectors is not a member of package > org.apache.flink.streaming > import org.apache.flink.streaming.connectors.cassandra._ > > We have Flink 1.3.2 running. > > It would be great to see an example of what to implement for reading > from Cassandra and another that uses the Cassandra Connector sink (the > example from the documentation gave us the error above). > We tried to find something but had no luck. > > Kind regards, > Andre > --001a1145ab00799e47055eb86b5e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Andre,

Do you have a= batch or streaming use case?
Flink provides Cassandra Input and Outpu= tFormats for DataSet (batch) jobs and a Cassandra Sink for DataStream appli= cations. The is no Cassandra source for DataStream applications.
=
Regarding your error, this looks more like a Zepplin configu= ration issue to me.
It seems that the JAR file is not correctly a= dded to the classpath.

Best,
Fabian
<= /div>

2017-1= 1-17 13:22 GMT+01:00 Andr=C3=A9 Sch=C3=BCtz <andre@wegtam.com>:
Hi,

we want to read and write from and to Cassandra.

We found the Flink-Cassandra connector and added the JAR to the lib
folder of the running Flink cluster (local machine).

Trying to access the Cassandra database by adding the import
to a notebook within Apache Zeppelin, resulted in the following error:

import org.apache.flink.streaming.connectors.cassandra._

error: object connectors is not a member of package org.apache.flink.stream= ing
import org.apache.flink.streaming.connectors.cassandra._

We have Flink 1.3.2 running.

It would be great to see an example of what to implement for reading
from Cassandra and another that uses the Cassandra Connector sink (the
example from the documentation gave us the error above).
We tried to find something but had no luck.

Kind regards,
Andre

--001a1145ab00799e47055eb86b5e--