Fork me on GitHub
#flambo
<
2016-04-21
>
jrotenberg18:04:47

let the discussion begin

sorenmacbeth19:04:54

hmm, what’s happening there?

jrotenberg19:04:06

i think cider is telling me the argument options for CassandraJavaUtil/mapTupleToRow

jrotenberg19:04:32

and since it takes a bunch of TupleN args

jrotenberg19:04:00

the saveToCassandra stuff is starting to make a little more sense

jrotenberg19:04:07

i think it could be wrapped up pretty well

jrotenberg20:04:50

thats the “tested in my cider-scratch buffer” version of saving the word count results in cassandra

jrotenberg20:04:10

that interop ain’t so pretty, though

jrotenberg20:04:24

this old repo was using mapToRow which needs a bean

jrotenberg20:04:32

which is probably why it wasn’t working

jrotenberg20:04:47

i think the mapTupleToRow stuff is newer

sorenmacbeth21:04:14

nice! that’s not bad at all

jrotenberg22:04:53

you could easily wrap those lines into a save-to-cassandra function

jrotenberg22:04:22

mainly comes down to how to handle mapping the data into a row

jrotenberg22:04:33

and whether you do it automatically somehow

jrotenberg22:04:07

could do multi-arity

jrotenberg22:04:24

(save-to-cassandra rdd) which just tries to figure it out

jrotenberg22:04:53

(save-to-cassandra rdd {“column-name” column-class})

sorenmacbeth22:04:23

yeah that sounds reasonable

jrotenberg22:04:49

i’m writing a little test/verification app for our new cluster

jrotenberg22:04:03

i’ll try it out there first