I have a cassandra table person_master (personId: int, customerId: Int, firstName: String, lastName: String, mrids: Set) primaryKey (personId and customerID)
Suppose I have one input RDD of structure [personId, customerId, firstName, lastname, messageType: String, source: String, sourceType: String]
suppose value of RDD:[1001,119,None,None,{abc.xyz} and cassandra row has value [1001,119,Vikash,Singh,{aaa.bbb}]
I want on fetch cassandra row based on RDD value and update the mrids column of cassandra table and using all other column from cassandra row.
e.g. in this I want final RDD value as [1001,119,Vikash,Singh,{aaa.bbb,abc.xyz}] which I will update to cassandra later.
Can anybody give me the solution to do this in Spark using cassandra Connector.