I setup 4 virtual machines by virtualbox, all the four machines installed ubuntu linux server edition with Cassandra 1.2.0, and they all adopt bridge network.
The problem I get is that these four machines could start in cluster mode when I'm working in office , but they don't work when I'm working from home.
Since the four machines use bridge mode, the IP addresses in Company are different with those when I'm working from home. I have to change the IP addresses when I switch the ENV in cassandra.yaml configuration files in them.
Since the ENV in company works, I only list the configuration in my home.
Below is the list for the configuration items I changed for my home CLUSTER ENV:
initial_token: 0 (all the four machines have different token, I use the token tool to generate token for them)
listen_address: 192.168.0.103 (all the other machines set their own address, 192.168.0.104,192.168.105, 192.168.0.106)
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
- seeds: "192.168.0.103"
When, I startup the cassandra on these machines (I start the seed machine first), there is no error reported, however, they are running in their own local mode, whatever I created such as column family, it will be invisible to other nodes. And when I execute nodetool ring in those machines, I get error message:
~/software/java/apache-cassandra-1.2.0/conf$ nodetool ring
Failed to connect to '127.0.0.1:7199': Connection refused
This is really weird, because when I'm working from home, after I changing the IP addresses in the cassandra.yaml file, the cluster ENV does work, does anyone could help on this? Thanks a lot!