Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

Jason.F.McGee_177754 avatar image
Jason.F.McGee_177754 asked ·

Execute multiple queries & Write Info to a File

I want run multiple queries and write the output to a file.

How do I execute?


Same Keyspace

----------------------

SELECT *

FROM QUERY A;


SELECT *

FROM QUERY B;


Write Output to a .csv File


batchqueryoutput
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

JoshPerryman avatar image
JoshPerryman answered ·

Easiest way is to use the dsbulk utility.

See Brian Hess's really excellent intro: https://www.datastaxacademy.com/content/datastax-bulk-loader-unloading

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.