Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create multiple connections using hector client #624

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

How to create multiple connections using hector client #624

geetanjaligandhi opened this issue Jun 24, 2013 · 1 comment

Comments

@geetanjaligandhi
Copy link

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
Copy link
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" [email protected]
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//issues/624
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants