I want to store spark RDD to Cassandra table but it's not working. My RDD is in the form
{"id":"04bBGJpwUh","date":"2018-03-26 05:28:25","temp":37,"press":16}
{"id":"pi4Axn3iOd","date":"2018-03-26 05:28:27","temp":49,"press":17}
My cassandra table is
CREATE TABLE mydata.stations(id text primary key,date text,temp int,press int);
Can anyone please help me how to do it? I have tried few examples given but none of them is working.