Re: Weird error: InvalidQueryException: unconfigured table table2

2017-03-27 Thread Vladimir Yudovin
>Just wish that an error like: "Table x not found in keyspace y" You are welcome to open JIRA with type Improvement. Best regards, Vladimir Yudovin, Winguzone - Cloud Cassandra Hosting On Sun, 26 Mar 2017 13:31:33 -0400 S G wrote Thanks, go

Re: Weird error: InvalidQueryException: unconfigured table table2

2017-03-26 Thread Arvydas Jonusonis
Prefixing with the ks is best practice, since it allows you to use a single session for multiple keyspaces. Otherwise you'd have to have a desicated session and set the keyspace by calling cluster.connect(ks) On Sun, Mar 26, 2017 at 19:39 S G wrote: > Thanks, got it working now :) > > Just wish t

Re: Weird error: InvalidQueryException: unconfigured table table2

2017-03-26 Thread S G
Thanks, got it working now :) Just wish that an error like: "Table x not found in keyspace y" would have been much better than: "Table x not configured". On Sat, Mar 25, 2017 at 6:13 AM, Arvydas Jonusonis < arvydas.jonuso...@gmail.com> wrote: > Make sure to prefix the table with the keysp

Re: Weird error: InvalidQueryException: unconfigured table table2

2017-03-25 Thread Arvydas Jonusonis
Make sure to prefix the table with the keyspace. On Sat, Mar 25, 2017 at 13:28 Anuj Wadehra wrote: > Ensure that all the nodes are on same schema version such that table2 > schema is replicated properly on all the nodes. > > Thanks > Anuj > > Sent from Yahoo Mail on Android >

Re: Weird error: InvalidQueryException: unconfigured table table2

2017-03-25 Thread Anuj Wadehra
Ensure that all the nodes are on same schema version such that table2 schema is replicated properly on all the nodes. ThanksAnuj Sent from Yahoo Mail on Android On Sat, Mar 25, 2017 at 3:19 AM, S G wrote: Hi, I have a keyspace with two tables. I run a different query for each table: Table

Re: Weird error: InvalidQueryException: unconfigured table table2

2017-03-24 Thread Vladimir Yudovin
>Wish the error message a little more helpful. Actually "unconfigured" means "not existed", "not created". Best regards, Vladimir Yudovin, Winguzone - Cloud Cassandra Hosting On Fri, 24 Mar 2017 21:39:45 -0400 S G wrote Ah, the keyspace for t

Re: Weird error: InvalidQueryException: unconfigured table table2

2017-03-24 Thread S G
Ah, the keyspace for table2 was somehow getting hardcoded to a wrong keyspace. Wish the error message a little more helpful. On Fri, Mar 24, 2017 at 2:48 PM, S G wrote: > Hi, > > I have a keyspace with two tables. > > I run a different query for each table: > > Table 1: > Select * from table

Weird error: InvalidQueryException: unconfigured table table2

2017-03-24 Thread S G
Hi, I have a keyspace with two tables. I run a different query for each table: Table 1: Select * from table1 where id = ? Table 2: Select * from table2 where id1 = ? and id = ? My code using datastax fires above two queries one after the other. While it never fails for table 1, it never s