Re: Is there any configuration so that local program on C* node can connect using localhost and remote program using IP/name?

2015-10-20 Thread Tyler Hobbs
On Mon, Oct 19, 2015 at 7:35 PM, Ravi  wrote:

>
> I am using apache-cassandra-2.2.0.


You should upgrade to 2.2.3.  There were some bugs that you probably want
to avoid in 2.2.0.


>
> Is there any configuration so that local program on C* node can connect
> using localhost as connection url and remote program's using IP/name in
> connection url?


Set rpc_address to 0.0.0.0 to bind all interfaces.


-- 
Tyler Hobbs
DataStax 


Is there any configuration so that local program on C* node can connect using localhost and remote program using IP/name?

2015-10-19 Thread Ravi
I have two node C* cluster and on these two nodes I want to run spark jobs
locally. Inside sparkJob I have to put connection url as localhost so that
it will insert data to local C* instance( I am using Cassandra same nodes
as spark Job's slaves for execution via Mesos)

Problem is if I change rpc_address=localhost in cassandra.yml then I can
connect locally using Spark job(with localhost as connection url) or cqlsh
localhost but remote applications cannot connect to node using IP in
connection url.

I am using apache-cassandra-2.2.0.

Is there any configuration so that local program on C* node can connect
using localhost as connection url and remote program's using IP/name in
connection url?

Is this approach correct to connect local spark job to its local C* node
for any RDD operations?

Thanks,
Ravi