Did you put the jar into the /lib folder on the server ? I know it's a basic question but it's the first idea to come in mind
On Mon, Jul 28, 2014 at 9:36 AM, Martin Marinov <martin.mari...@securax.org> wrote: > Anybody got an idea on this matter ? > > > On 07/24/2014 06:34 PM, Martin Marinov wrote: > > Hi, > > I posted the question on stackoverflow: > > http://stackoverflow.com/questions/24937425/cassandra-trigger-following-the-cql-for-cassandra-2-0-tutorial-does-not-work > > On 07/24/2014 06:25 PM, Martin Marinov wrote: > > Hi, > > I'm following the tutorial at: > http://www.datastax.com/documentation/cql/3.1/cql/cql_reference/trigger_r.html > > I'm using Cassandra 2.0.9 with Oracle Java (java version "1.7.0_60"). > > I have downloaded the example Java Class from > https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=examples/triggers/src/org/apache/cassandra/triggers/InvertedIndex.java;hb=HEAD > into a file named *org.apache.cassandra.triggers.InvertedIndex.jar* . > > I then created a jar using: > > jar cvf > /etc/cassandra/triggers/org.apache.cassandra.triggers.InvertedIndex.jar > org.apache.cassandra.triggers.InvertedIndex.class > > I restarted the cassandra service. > > The trigger does not exist: > > cqlsh:mykeyspace> CREATE TRIGGER myTrigger ON myTable USING > 'org.apache.cassandra.triggers.InvertedIndex'; > Bad Request: Trigger class 'org.apache.cassandra.triggers.InvertedIndex' > doesn't exist > > What am I doing wrong ? > > -- > Best Regards, > > Martin Marinov > Securax LTD > > NOTICE: This email and any file transmitted are confidential and/or > legally privileged and intended only for the person(s) directly > addressed. If you are not the intended recipient, any use, copying, > transmission, distribution, or other forms of dissemination is strictly > prohibited. If you have received this email in error, please notify the > sender immediately and permanently delete the email and files, if any. > > > > -- > Best Regards, > > Martin Marinov > Securax LTD > > NOTICE: This email and any file transmitted are confidential and/or > legally privileged and intended only for the person(s) directly > addressed. If you are not the intended recipient, any use, copying, > transmission, distribution, or other forms of dissemination is strictly > prohibited. If you have received this email in error, please notify the > sender immediately and permanently delete the email and files, if any. > > > > -- > Best Regards, > > Martin Marinov > Securax LTD > > NOTICE: This email and any file transmitted are confidential and/or > legally privileged and intended only for the person(s) directly > addressed. If you are not the intended recipient, any use, copying, > transmission, distribution, or other forms of dissemination is strictly > prohibited. If you have received this email in error, please notify the > sender immediately and permanently delete the email and files, if any. > >