0

I have set the following. rpc_address to external public ip. Listen Address : internal ip address (not the local host), rpc_broad_cast: internal ip address

On Dev center, I am using external ip and port 9042.

Let me know, if am doing anything wrong.

fsheriff
  • 11
  • 2
  • Please describe the specific problem that you're facing - can you connect with this configuration? If not, is there relevant output in the logs, or anywhere else? – snakecharmerb Apr 02 '16 at 09:24
  • Thank you snakecharmerb for getting back to me. I am not able to connect and the error that I get on the dev center is. The specified host(s) could not be reached. All host(s) tried for query failed (tried: /:9160 (com.datastax.driver.core.TransportException: [/:9160] Cannot connect)) [/] Cannot connect – fsheriff Apr 02 '16 at 19:50

2 Answers2

0

Thank you snakecharmerb for trying to help me out on this.

I was able to find a solution for this myself. The actual problem was I was using Dev Center 1.4 to connect to Cassandra 3. Once I upgraded to the Dev Center 1.5, it worked like a charm with SSH Local port forwarding enabled.

These are the following settings Listen Address : internal ip address (not the localhost), rpc_address: internal ip address (same as above)

Steps After setting the above steps

On my terminal enabled local port forwarding ssh -L 9042::9042 @

Start Dev Center 1.5

It worked like a charm

Community
  • 1
  • 1
fsheriff
  • 11
  • 2
0

It's worked finally :

steps :

1. set listen_address to private IP of EC2 instance.
2. do not set any broadcast_address
3. set rpc_address to 0.0.0.0
4. set broadcast_rpc_address to public ip of EC2 instance.
Nilesh
  • 2,054
  • 3
  • 23
  • 43