How to connect datastax dev center to remote cluster in amazon EC2 instance?

南笙酒味 提交于 2019-12-12 02:49:22

问题


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.


回答1:


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




回答2:


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.


来源:https://stackoverflow.com/questions/36370644/how-to-connect-datastax-dev-center-to-remote-cluster-in-amazon-ec2-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!