Re: Authentication with Java driver

2017-02-09 Thread Ben Bromhead
If the processes are launched separately or you fork before setting up the cluster object it won't share credentials. On Wed, Feb 8, 2017, 02:33 Yuji Ito wrote: > Thanks Ben, > > Do you mean lots of instances of the process or lots of instances of the > cluster/session

Re: Authentication with Java driver

2017-02-08 Thread Yuji Ito
Thanks Ben, Do you mean lots of instances of the process or lots of instances of the > cluster/session object? Lots of instances of the process are generated. I wanted to confirm that `other` doesn't authenticate. If I want to avoid that, my application has to create new cluster/session

Re: Authentication with Java driver

2017-02-07 Thread Ben Bromhead
On Tue, 7 Feb 2017 at 17:52 Yuji Ito wrote: Thanks Andrew, Ben, My application creates a lot of instances connecting to Cassandra with basically the same set of credentials. Do you mean lots of instances of the process or lots of instances of the cluster/session object?

Re: Authentication with Java driver

2017-02-07 Thread Yuji Ito
Thanks Andrew, Ben, My application creates a lot of instances connecting to Cassandra with basically the same set of credentials. After an instance connects to Cassandra with the credentials, can any instance connect to Cassandra without credentials? == example == A first = new A("database",

Re: Authentication with Java driver

2017-02-07 Thread Ben Bromhead
What are you specifically trying to achieve? Are you trying to authenticate multiple Cassandra users from a single application instance? Or will your have lot's of application instances connecting to Cassandra using the same set of credentials? Or a combination of both? Multiple application

Re: Authentication with Java driver

2017-02-07 Thread Andrew Tolbert
Hello, The API seems kind of not correct because credentials should be > usually set with a session but actually they are set with a cluster. > With the datastax driver, Session is what manages connection pools to each node. Cluster manages configuration and a separate connection ('control

Re: Authentication with Java driver

2017-02-07 Thread Hiroyuki Yamada
Hi, The API seems kind of not correct because credentials should be usually set with a session but actually they are set with a cluster. So, if there are 1000 clients, then with this API it has to create 1000 cluster instances ? 1000 clients seems usual if there are many nodes (say 20) and each

Authentication with Java driver

2017-02-06 Thread Yuji Ito
Hi all, I want to know how to authenticate Cassandra users for multiple instances with Java driver. For instance, each thread creates a instance to access Cassandra with authentication. As the implementation example, only the first constructor builds a cluster and a session. Other constructors