Hi I have created a 2 node cluster and following the killrvideo keyspace example . I have created a table just like mentioned :
videos_by_tag with primary key as (tag,added_date,video_id) tag is partition key.
in my caasandra.yaml i have taken all default config like num_tokens in each node as 256.
that means for each node 1 and node 2 token range will be divided into 256 parts each.
now i have some data in the table. lets say 5 rows are present tagged by either 'datastax' or 'cassandra'
so when i execute the command to find out on which node the data lies based on parttion key (tag) value I recieve ip address of the same node for 'cassandra' as well as 'datastax' why ?
nodetool getendpoints killrvideos videos_by_tag 'cassandra'
> returns Node 1 IP
nodetool getendpoints killrvideos videos_by_tag 'datastax'
> returns node 1 ip
why same ip it must be partitoned onto 2 nodes 1 and 2 as per partition key value is different?