How to create multiple connections using hector client #624

Open
geetanjaligandhi opened this Issue Jun 24, 2013 · 1 comment

Projects

None yet

2 participants

@geetanjaligandhi

Hi
My use case requires me to insert 50K file in cassandra
As of now, when we try to implement Java executor service and run the client ,it appears that hector does not create those many connections to a single Cassandra node.

Each file processing code is a runnable and we create a mutator object inside that. The cluster and keyspace information are read before file processing.

Any suggestion on how to create multiple connections using hector client on a single node Cassandra cluster?

Thanks,

@patricioe
Collaborator

Hector creates by default 50 per Cassandra node which should be enough.

Check the documentation for how to use the configurator object
cassandraHostConfigurator
On Jun 24, 2013 2:08 AM, "geetanjaligandhi" notifications@github.com
wrote:

Hi
My use case requires me to insert 50K file in cassandra
As of now, when we try to implement Java executor service and run the
client ,it appears that hector does not create those many connections to a
single Cassandra node.

Each file processing code is a runnable and we create a mutator object
inside that. The cluster and keyspace information are read before file
processing.

Any suggestion on how to create multiple connections using hector client
on a single node Cassandra cluster?

Thanks,


Reply to this email directly or view it on GitHubhttps://github.com/hector-client/hector/issues/624
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment