我剛剛在AWS上設置了一個運行centOS 7的四節點Cassandra 3.4羣集。我能夠配置它並將所有節點放在一起。現在我想執行一些測試,使用我在一臺機器上安裝的devops中心監視羣集行爲。訪問Cassandra EC2羣集外的devops接口
我想使用ssh隧道從我的電腦訪問:
ssh -i Amazon-EC2-Ami.pem -L 9999:localhost:8888 [email protected]_address
使用我的瀏覽器,localhost:9999
被正確地隧道傳送到DEVOPS登錄頁面:http://localhost:8888/opscenter/login.html
,但我得到了一個ERR_CONNECTION_REFUSED
我嘗試使用命令行瀏覽器訪問該機器上的devops,並顯示登錄頁面。我真的不知道這個問題會是什麼。任何信息都是真正的讚賞。這是卡桑德拉 - YAML配置文件,在情況下,它可以幫助:
cluster_name: 'Cloak'
listen_address:
endpoint_snitch: GossipingPropertyFileSnitch
rpc_address:
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
- seeds: "172.31.55.186,172.31.55.187"
編輯 使用-v選項啓動SSH隧道我可以證實,這些請求正確隧道:
[[email protected] ~]$ debug1: Connection to port 9999
forwarding to localhost port 8888 requested.
debug1: channel 3: new [direct-tcpip]
debug1: Connection to port 9999 forwarding to localhost port 8888
requested.
debug1: channel 4: new [direct-tcpip]
debug1: channel 3: free: direct-tcpip: listening port 9999 for
localhost port 8888, connect from 127.0.0.1 port 43846 to 127.0.0.1
port 9999, nchannels 5