Example to write the output to cassandra