简体   繁体   中英

Connect to Cassandra Cluster fails with an IP address - WSO2 BAM

I am using WSO2 BAM 2.3.0. In that I use Home -> Manage -> Cassandra Explorer -> Connect to Cluster to explore the my data in Cassandra cluster. Up to some point I used the local Cassandra cluster with Connection Url as localhost:9161 and it works fine.

Later I wanted to explore the same cluster(Which runs on remote server) using a locally running BAM instance. I used the IP Address:9161 as Connection Url. But it failed with following error in console,

[2013-08-25 13:44:19,320] ERROR {me.prettyprint.cassandra.connection.HConnectionManager} -  Could not start connection pool for host IPAddress(IPAddress):9161

Then I go to the remote server's BAM management console and entered the same server's IP address as Connection Url. But there also it fails. When I change the IP address to localhost, it works fine. What has gone wrong here?

Also I did this because I tried to run a Hive Query on my local machine by connecting to above mentioned Server's Cassandra Cluster. It failed with some exceptions saying couldn't connect to the Cassandra.

You can access. You must edit cassandra.yaml file in BAM_HOME/repository/conf/etc.

Change the listen address and rpc_address to your ip address.

Then in master-datasources.xml for WSO2BAM_CASSANDRA_DB use the ip address in the url.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM