A (drop-in) replacement for ColumnFamilyRecordReader in C*3?

2017-05-02 Thread kedar mhaswade
Hello Cassandra Devs,

See https://issues.apache.org/jira/browse/CASSANDRA-10996. This JIRA tells us 
the schema changes between C*2 and C*3. Sylvain Lebresne suggests that one 
should use the KeyspaceMetadata and related classes from the DataStax driver 
instead of running queries against the internal schema keyspaces which have 
also moved. 

My problem is related to CASSANDRA-10996, although unlike the reporter of that 
report, I am not doing a query like that. It's a Cassandra 2.2 class itself 
that does a similar query for me. This class is 
org.apache.cassandra.hadoop.ColumnFamilyRecordReader which is used as-is (via a 
wrapper) in one of the projects I am working on (JanusGraph). Since this class 
is not found on Cassandra trunk, there must be something that replaces its 
functionality (hopefully a drop-in replacement). And the way it fails 
JanusGraph is documented in this bug: 
https://github.com/JanusGraph/janusgraph/issues/172.

I have two questions in this regard:
1- Is there a replacement for CFRR?
2- If not, can someone provide a way to replace ColumnFamilyRecordReader 
functionality, hopefully with some example code? I am thinking that we could 
wrap org.apache.cassandra.hadoop.cql3.CqlRecordReader instead of CFRR, but I 
need a bit more context before I embark on that adventure.

Thanks and Best Regards,
Kedar


-
To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
For additional commands, e-mail: dev-h...@cassandra.apache.org



Keyspaces not found in cqlsh

2016-02-11 Thread kedar

Dev Team,

Need some help with a burning cqlsh issue

I am using cqlsh 5.0.1 | Cassandra 2.1.2, recently we are unable to see
/ desc keyspaces and query tables through cqlsh on either of the two nodes

cqlsh> desc keyspaces



cqlsh> use user_index;
cqlsh:user_index> desc table list_1_10;

Keyspace 'user_index' not found.
cqlsh:user_index>
cqlsh>  select * from system.schema_keyspaces;
Keyspace 'system' not found.
cqlsh>
We are running a 2 node cluster. The Python - Django app that inserts
data is running without any failure and system logs show nothing abnormal.

./nodetool repair on one node hasn't helped ./nodetool cfstats shows all
the tables too

ls -l cassandra/data/*  on each node:

https://gist.github.com/anonymous/3dddbe728a52c07d7c52
https://gist.github.com/anonymous/302ade0875dd6410087b




 --
Thanks,
Kedar Parikh