How to know from which seed node the data is coming in cassandra using Java

184 Views Asked by At

I am using cassandra 3.2.1 And now I want to ensure that data is coming from which node using any library called datastax or astyanax in Java.

Is it possible?

1

There are 1 best solutions below

3
doanduyhai On

I want to know from which node the record is coming.For example suppose 10 records i am fetching from database and i have 6 nodes with replication factor 4. i want see each record is coming from which node.

You can't have this information on the "row" level. All you can have is which node is sending you data for which partition

To know that, activate query tracing: http://www.datastax.com/dev/blog/tracing-in-cassandra-1-2