-1
我需要一些幫助試圖從機架空間框連接到我的redshift羣集。從Rackspace連接到Redshift
我可以很好地連接我的ec2實例,也可以從我的本地機器連接。我已經檢查(並雙重檢查)並驗證了所有連接參數,並且它們在我的代碼中表現良好,唯一的區別是環境,即當我嘗試從我的ec2實例進行連接時,它工作正常,但嘗試連接時從我的Rackspace的盒子,我得到以下錯誤
Connection to DB failed
could not connect to server: Connection timed out
Is the server running on host "my_redshift_cluster_host_name" (cluster_ip) and accepting
TCP/IP connections on port <cluster_port>?
我有一個「CIDR/IP」連接類型的安全組,其詳細信息爲「CIDR/IP:0.0.0.0/0」。這是爲了公共場合嗎? – 2014-11-04 15:01:42
您需要將公網IP 123.123.123.123/32放在CIDR/IP中的redshift安全組中。將Rackspace盒子的公共IP放在這裏。 – 2014-11-04 18:06:20
原來,這只是iptables限制我的rackspace盒子上的端口。通過爲特定端口添加excrption來解決它。 – 2014-11-07 20:48:22