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

maruti.nitj_91373 avatar image
maruti.nitj_91373 asked ·

Is there a way for DSBulk to reuse the connection for all tables in the same keyspace?

Is there a way to have dsbulk reuse the connection object instead of doing the connection for each table for the same keyspace.


dsbulk
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

Erick Ramirez avatar image
Erick Ramirez answered ·

@maruti.nitj_91373 The DSBulk utility isn't designed to be a long-running application and is meant to be run on one table at a time.

What is your concern about DSBulk opening new connections to the cluster when you load/unload a table? If you give us additional information on what you're trying to achieve, we might be able to provide a solution. Cheers!

2 comments 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.

When we use dsbulk to unload and load data from multiple tables , assume its a script invoked with a while loop for each table in the key space, idea is just to have a way for dsbulk to establish the connection once and load different tables in the key space. But I See the utility is designed to run one table @ a time , so I believe that answers my question.

0 Likes 0 · ·

Glad to hear. Cheers!

0 Likes 0 · ·