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 A50D1200BCC for ; Tue, 29 Nov 2016 23:18:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A3D24160B15; Tue, 29 Nov 2016 22:18:27 +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 58D53160AFC for ; Tue, 29 Nov 2016 23:18:26 +0100 (CET) Received: (qmail 65123 invoked by uid 500); 29 Nov 2016 22:18:25 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 65113 invoked by uid 99); 29 Nov 2016 22:18:25 -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; Tue, 29 Nov 2016 22:18:25 +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 1345BC6C3A for ; Tue, 29 Nov 2016 22:18:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, 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=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 LqvNf1BxFlQz for ; Tue, 29 Nov 2016 22:18:22 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8C0C55F5FC for ; Tue, 29 Nov 2016 22:18:22 +0000 (UTC) Received: by mail-vk0-f45.google.com with SMTP id x186so100222236vkd.1 for ; Tue, 29 Nov 2016 14:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=IL0OYogETRzwC/L+m6rqtl+W+4QLcSh9jDUDF8p5NN4=; b=SHpJTHMLH3Zqb8TOmsghwyi+1aWEBA4pSqjbxY5lZ7j7eBbCfAARG4wavVBjRXC9CK KznRN6z8TrzeyonmH45GmzjaN8d4wks59FUi+VoZO5qM7AN+1MIp6nEMH7VxEf9oivHs bfQy9HBgv+IH46oPXmIvtbWtQacIHUwQHR8d8/D+A36jTz4ixo00bKQYN4Qpx12SlVDM nJlojD91E1gcHD54OOQ9TFHcDM7ySqUqTA0wh2qzzsIA81ELkj1v+i33GqOLuVA0saxW HMsJIEc0PVjI6NktszDFzs01zIS/V7sNc/11ix9GLGl9obEmj51sYV+VrbJj8NJ4RMib haNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=IL0OYogETRzwC/L+m6rqtl+W+4QLcSh9jDUDF8p5NN4=; b=l8D3kH+qGAWRBpcfNP5QZWkPwf8txmnNJO7csVnEv6SkVSnldkwxxoeRcY/3QITg3q Pi6+55tDIU3uqVrLkPGVMTQHLpgNiwNFn6JGnxy4ZLrrjJatdIYfIHV7mjStz69IqUae aJ60LUz5ISoId2V5+JriR8lyyZg+c7eUIteG/q996GtdRdk3Gpn0jbWzku9edjH767WD cmZnulAbNXXzh49flTkvmIpt0UZNBHuJaGVBNMwcAXK2NFbY+hQ26c2coB2EFlgGEsr0 iBRrUlofCoVafKV3j09Z2GdidqMfXwIrIW7v1Gh8qsU5QilVfAsR3Vg9BcnMqLeIBZCZ NPTw== X-Gm-Message-State: AKaTC0292Hamgehz8BLvyCH4w/E+H5C2zukWOjVWJ1+do6YeKx9NY490sBal9oJP4/1fTGnZ4qi5KN5F2xaaIg== X-Received: by 10.31.153.195 with SMTP id b186mr11288528vke.140.1480457901942; Tue, 29 Nov 2016 14:18:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.40.67 with HTTP; Tue, 29 Nov 2016 14:18:01 -0800 (PST) In-Reply-To: References: <5D8BAE22-1454-4D85-AD6F-E086CD111ED0@apache.org> <07D7A196-9259-4493-83AE-4DC86900CEDD@apache.org> From: Igor Rudyak Date: Tue, 29 Nov 2016 14:18:01 -0800 Message-ID: Subject: Re: Cassandra basic setup To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=001a1141d5b859ab0c054277f7b2 archived-at: Tue, 29 Nov 2016 22:18:27 -0000 --001a1141d5b859ab0c054277f7b2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ok, thanks for the info. Igor On Tue, Nov 29, 2016 at 12:56 PM, Denis Magda wrote: > Igor, > > The documentation has been moved to the new integrations related site > https://apacheignite-mix.readme.io/docs/ignite-with-apache-cassandra > > You=E2=80=99re free to update it there. > > =E2=80=94 > Denis > > On Nov 29, 2016, at 11:49 AM, Denis Magda wrote: > > Igor, > > Please hold on for a while. I=E2=80=99ve just started moving all the inte= grations > related documentation to a new domain. I=E2=80=99ll let you know when it= =E2=80=99s safe to > update the doc. > > =E2=80=94 > Denis > > On Nov 29, 2016, at 10:46 AM, Igor Rudyak wrote: > > Hi Riccardo, > > Thanks for noticing this. There were number of refactorings done and it > looks like we need to update the documentation. > > I'll update the documentation for the module. > > Igor > > On Tue, Nov 29, 2016 at 9:26 AM, Denis Magda wrote: > >> Igor, >> >> Would you mind looking through the documentation and updating it wheneve= r >> is needed? >> >> =E2=80=94 >> Denis >> >> On Nov 29, 2016, at 1:58 AM, Riccardo Iacomini < >> riccardo.iacomini@rdslab.com> wrote: >> >> Hi Igor, >> I finally discovered what was causing the issue. The example provided >> in the Ignite >> documentation page has a subtle difference in the package structure of >> several classes, for example: >> >> org.apache.ignite.cache.store.cassandra.datasource.DataSource (the class >> in the ignite-cassandra.jar) vs org.apache.ignite.cache.store.cassandra. >> *utils*.datasource.DataSource (in the example). The same applies also >> for other classes in the example. I do not know if this is due to a >> refactoring performed on the code which did not propagates through the >> examples, or simply I used a different version of the documentation in >> contrast with the one I was running. >> >> Anyway, thank you for your time. >> >> Best regards >> >> Riccardo Iacomini >> >> >> *RDSLab* >> >> On Mon, Nov 28, 2016 at 5:34 PM, Igor Rudyak wrote: >> >>> If you are using ignite.sh it should be fine. >>> >>> Igor >>> >>> On Nov 28, 2016 8:29 AM, "Riccardo Iacomini" < >>> riccardo.iacomini@rdslab.com> wrote: >>> >>>> I will try. Yes I am using the ignite.sh command. Any drawbacks? >>>> >>>> Il 28 nov 2016 5:26 PM, "Igor Rudyak" ha scritto: >>>> >>>> Try to check your classpath. Find ignite process usig something like >>>> ps -es | grep Ignite and check java command used to launch ignite. >>>> >>>> By the way, how you launching Ignite? Do you use ignite.sh script for >>>> this? >>>> >>>> Igor >>>> >>>> On Nov 28, 2016 8:05 AM, "Riccardo Iacomini" < >>>> riccardo.iacomini@rdslab.com> wrote: >>>> >>>>> Hi Igor, >>>>> I tried your suggestion, but it does find the class. I've also read >>>>> from the README files that optional modules must be copied into the l= ibs >>>>> folder: same outcome. I've tried also the docker image, adding my >>>>> configuration xml files to it, and running the image as specified her= e >>>>> in the >>>>> documentation. Do you have any other suggestion? >>>>> >>>>> Thanks for your patience. >>>>> >>>>> Best regards >>>>> >>>>> Riccardo Iacomini >>>>> >>>>> >>>>> *RDSLab* >>>>> >>>>> On Sun, Nov 27, 2016 at 8:46 PM, Igor Rudyak >>>>> wrote: >>>>> >>>>>> Try to include required jars into IGNITE_LIBS environment variable. >>>>>> >>>>>> Igor >>>>>> >>>>>> On Thu, Nov 24, 2016 at 5:21 AM, Riccardo Iacomini < >>>>>> riccardo.iacomini@rdslab.com> wrote: >>>>>> >>>>>>> Hi Igor, >>>>>>> thanks for your reply. I've both tried building ignite from source >>>>>>> and removing CassandraAdminCredentials class specifying username an= d >>>>>>> password in the bean's properties. Anyway, I cannot get it work. Ig= nite >>>>>>> still cannot find the required classes, this time *org.apache.ignit= e.cache.store.cassandra.utils.datasource.DataSource. >>>>>>> *The class is indeed located in the jar ignite-cassandra-1.7.0.jar >>>>>>> in IGNITE_HOME/modules/cassandra/target. I tried adding the path to >>>>>>> USER_LIBS and CLASSPATH, no different behavior. Maybe the environme= nt >>>>>>> variables got ignored? >>>>>>> >>>>>>> >>>>>>> Riccardo Iacomini >>>>>>> >>>>>>> >>>>>>> *RDSLab* >>>>>>> >>>>>>> On Wed, Nov 23, 2016 at 7:41 PM, Igor Rudyak >>>>>>> wrote: >>>>>>> >>>>>>>> Hi Riccardo, >>>>>>>> >>>>>>>> *CassandraAdminCredentials *class is only available in Ignite unit >>>>>>>> tests sources. If you want to use it you should build Ignite from = source >>>>>>>> code. Such way, it will create >>>>>>>> *ignite-cassandra-tests-${project.version}.zip* where jar may find >>>>>>>> jar file containing all the test classes. >>>>>>>> >>>>>>>> Also if you want to use Cassandra as a persistent store you >>>>>>>> actually don't need *CassandraAdminCredentials *cause it's just >>>>>>>> used for tests. >>>>>>>> >>>>>>>> Igor >>>>>>>> >>>>>>>> On Wed, Nov 23, 2016 at 7:33 AM, Riccardo Iacomini < >>>>>>>> riccardo.iacomini@rdslab.com> wrote: >>>>>>>> >>>>>>>>> Following the example >>>>>>>>> provided in the >>>>>>>>> docs, I am trying to setup a basic Ignite cluster using Cassandra= as >>>>>>>>> persistent store. I've downloaded ignite 1.7 and created the conf= iguration >>>>>>>>> files. Ignite does read them at startup, but I get this error mes= sage: >>>>>>>>> >>>>>>>>> *class org.apache.ignite.IgniteException: Failed to instantiate >>>>>>>>> Spring XML application context (make sure all classes used in Spr= ing >>>>>>>>> configuration are present at CLASSPATH* >>>>>>>>> >>>>>>>>> CassandraAdminCredentials is the class not being found. Commentin= g >>>>>>>>> the bean, I get the same for the next class. I tried adding the p= ath to the >>>>>>>>> jar *ignite-cassandra-1.7.0.jar *to both CLASSPATH and USER_LIBS, >>>>>>>>> still not getting found. Opening the jar I cannot find the reques= ted class. >>>>>>>>> Am I missing some dependencies? >>>>>>>>> >>>>>>>>> Thank you for your help. >>>>>>>>> >>>>>>>>> Riccardo Iacomini >>>>>>>>> >>>>>>>>> >>>>>>>>> *RDSLab* >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >> >> > > > --001a1141d5b859ab0c054277f7b2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Ok, thanks for the info.

Igor

On Tue, Nov 29,= 2016 at 12:56 PM, Denis Magda <dmagda@apache.org> wrote:
Igor,
The documentation has been moved to the new integrations = related site

=
You=E2=80=99re free to update it there.

=E2= =80=94
Denis
=

On Nov 29, 2016, at 11:49 AM, Denis Magda <dmagda@apache.org> wrote:

Igor,

Please hold on for a whi= le. I=E2=80=99ve just started moving all the integrations related documenta= tion to a new domain. I=E2=80=99ll let you know when it=E2=80=99s safe to u= pdate the doc.

=E2=80=94
Denis

On Nov 29, 2016, at 10:46 AM, Igor= Rudyak <irudyak@= gmail.com> wrote:

Hi Riccardo,

Than= ks for noticing this. There were number of refactorings done and it looks l= ike we need to update the documentation.

I'll = update the documentation for the module.

Igor

On Tue, No= v 29, 2016 at 9:26 AM, Denis Magda <dmagda@apache.org> wrote= :
Igo= r,

Would you mind looking through the documentation and = updating it whenever is needed?

=E2=80=94
Deni= s

=
On Nov 29, 2016, at 1:58 AM, Riccardo I= acomini <riccardo.iacomini@rdslab.com> wrote:

Hi Igor,
I finally discovered what was causing the issue. The <= a href=3D"https://apacheignite.readme.io/docs/examples" target=3D"_blank">e= xample provided in the Ignite documentation page has a subtle differenc= e in the package structure of several classes, for example:

org.apache.ignite.cache.store.cassandra.da= tasource.DataSource (the class in the ignite-cassandra.j= ar) vs=C2=A0org.apache.ignite.cache.sto= re.cassandra.utils.datasource.DataSource=C2=A0(in the example). The same applies = also for other classes in the example. I do not know if this is due to a re= factoring performed on the code which did not propagates through the exampl= es, or simply I used a different version of the documentation in contrast w= ith the one I was running.

Anyway, thank you for your time.
Best regards

Riccardo Iacomini
RD= SLab


On Mon, Nov 28, 2016 at 5:34 PM, Igor Rudyak= <irudyak@gmail.com> wrote:
If you are using ignite.sh it should be fine.

Igor


On Nov 28, 2016 8= :29 AM, "Riccardo Iacomini" <riccardo.iacomini@rdslab.com> wrote= :

I w= ill try. Yes I am using the ignite.sh command. Any drawbacks?


Il 28 nov 2016 5:= 26 PM, "Igor Rudyak" <irudyak@gmail.com> ha scritto:

Try to check your clas= spath. Find ignite process usig something like=C2=A0 ps -es | grep=C2=A0 Ig= nite and check java command used to launch ignite.

By the= way, how you launching Ignite? Do you use ignite.sh script for this?

Igor


On Nov 28, 2016 8= :05 AM, "Riccardo Iacomini" <riccardo.iacomini@rdslab.com> wrote= :
H= i Igor,
I tried your suggestion, but it does find the class. I've al= so read from the README files that optional modules must be copied into the= libs folder: same outcome. I've tried also the docker image, adding my= configuration xml files to it, and running the image as specified here in the documentation. Do you have any other suggestion?
=
Thanks for your patience.

Best regards

<= font face=3D"georgia, serif" size=3D"2">Riccardo Iacomini
RDSLab

<= /div>

On Sun, Nov 27, 2016 at 8:46 PM, Igor Rudyak= <irudyak@gmail.com> wrote:
Try to include required jars into IGNITE_LIBS environmen= t variable.

Igor=C2=A0

On Thu, No= v 24, 2016 at 5:21 AM, Riccardo Iacomini <riccardo.iacomini@rds= lab.com> wrote:
Hi Igor,
thanks for your reply. I've both tried building ignit= e from source and removing CassandraAdminCredentials class specifying usern= ame and password in the bean's properties. Anyway, I cannot get it work= . Ignite still cannot find the required classes, this time org.apache.ig= nite.cache.store.cassandra.utils.datasource.DataSource. The c= lass is indeed located in the jar ignite-cassandra-1.7.0.jar in IGNITE_HOME= /modules/cassandra/target. I tried adding the path to USER_LIBS and CL= ASSPATH, no different behavior. Maybe the environment variables got ignored= ?


Riccardo Iacomi= ni
RDSLab
<= br>

On Wed, Nov 23, 2016 at 7:41 PM, Igor Rudyak= <irudyak@gmail.com> wrote:
Hi Riccardo,

CassandraAdminCredentials class is only available in Ignite= unit tests sources. If you want to use it you should build Ignite from sou= rce code. Such way, it will create=C2=A0ignite-cassandra-tests-${pr= oject.version}.zip where jar may find jar file containing all the test = classes.

<= /div>
Also if you want to use Cassandr= a as a persistent store you actually don't need=C2=A0CassandraAdminCredentials =C2=A0cause it's just used for tests.

Igor

On Wed, Nov 23, 2016 at 7:33 AM, Riccardo Iacomini = <ricca= rdo.iacomini@rdslab.com> wrote:
Following the example provided in the docs, I am = trying to setup a basic Ignite cluster using Cassandra as persistent store.= I've downloaded ignite 1.7 and created the configuration files. Ignite= does read them at startup, but I get this error message:

class o= rg.apache.ignite.IgniteException: Failed to instantiate Spring XML app= lication context (make sure all classes used in Spring configuration are pr= esent at CLASSPATH


CassandraAdminCredentials is the class not be= ing found. Commenting the bean, I get the same for the next class. I tried = adding the path to the jar ignite-cassandra-1.7.0.jar to both CLASSP= ATH and USER_LIBS, still not getting found. Opening the jar I cannot find t= he requested class. Am I missing some dependencies?

Thank you for yo= ur help.
=

Riccardo Iacomini
RDSLab











--001a1141d5b859ab0c054277f7b2--