incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Clustering in .7 beta 2
Date Tue, 12 Oct 2010 17:39:19 GMT
What setting do you have for the rpc_address ? I use 0.0.0.0 to bind to all interfaces, you
may want to set it to your ip_address listed.

my example

# Address to bind to and tell other nodes to connect to. You _must_
# change this if you want multiple nodes to be able to communicate!
listen_address:

# The address to bind the Thrift RPC service to
rpc_address: 0.0.0.0

Aaron

On 13 Oct 2010, at 04:40, Brayton Thompson wrote:

> I'm having some issues getting three nodes to cluster together in .7 beta 2.
> 
> Seed: xxx.xxx.xxx.xxx
> other node Y:  yyy.yyy.yyy.yyy
> other node Z:  zzz.zzz.zzz.zzz
> 
> when starting node Y this is the output... As you can see it binds thrift to localhost
even though its set as the machines ip in the cassandra.yaml file. (i had already started
the seed node which also bound thrift to localhost and not it's ip.)
> 
> [root@cassandra2 bin]# ./cassandra &
> [1] 5571
> [root@cassandra2 bin]# Using adaptive heap size:  1013M
>  INFO 15:14:03,757 JNA not found. Native methods will be disabled.
>  INFO 15:14:03,779 Loading settings from file:/cassandra/apache-cassandra/conf/cassandra.yaml
>  INFO 15:14:03,905 DiskAccessMode 'auto' determined to be standard, indexAccessMode is
standard
>  INFO 15:14:04,023 Couldn't detect any schema definitions in local storage.
>  INFO 15:14:04,025 Found table data in data directories. Consider using JMX to call org.apache.cassandra.service.StorageService.loadSchemaFromYaml().
>  INFO 15:14:04,056 Upgrading to 0.7. Purging hints if there are any. Old hints will be
snapshotted.
>  INFO 15:14:04,063 Creating new commitlog segment /var/lib/cassandra/commitlog/CommitLog-1286896444063.log
>  INFO 15:14:04,068 Cassandra version: 0.7.0-beta2-SNAPSHOT
>  INFO 15:14:04,068 Thrift API version: 17.1.0
>  INFO 15:14:04,072 Saved Token not found. Using 44179306714782081866606724801003045301
>  INFO 15:14:04,072 Saved ClusterName not found. Using Test Cluster
>  INFO 15:14:04,091 switching in a fresh Memtable for LocationInfo at CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1286896444063.log',
position=552)
>  INFO 15:14:04,095 Enqueuing flush of Memtable-LocationInfo@29071960(263 bytes, 5 operations)
>  INFO 15:14:04,096 Writing Memtable-LocationInfo@29071960(263 bytes, 5 operations)
>  INFO 15:14:04,161 Completed flushing /var/lib/cassandra/data/system/LocationInfo-e-1-Data.db
>  INFO 15:14:04,175 Starting up server gossip
>  INFO 15:14:04,192 Will not load MX4J, mx4j-tools.jar is not in the classpath
>  INFO 15:14:04,212 Binding thrift service to localhost/127.0.0.1:9160
>  INFO 15:14:04,214 Using TFramedTransport with a max frame size of 15728640 bytes.
> 
> [1]+  Exit 1                  ./cassandra
> 
> The relevant config definitions...
> 
> Seed:
> seeds:
>     - xxx.xxx.xxx.xxx
> 
> listen_address:
>     - xxx.xxx.xxx.xxx
> 
> 
> Other node Y:
> seeds:
>     - xxx.xxx.xxx.xxx
> 
> listen_address:
>     - yyy.yyy.yyy.yyy
> 
> 
> Other node Z:
> seeds:
>     - xxx.xxx.xxx.xxx
> 
> listen_address:
>     - zzz.zzz.zzz.zzz
> 
> running ./nodetool produces this...
> [root@cassandra1 bin]# ./nodetool -h xxx.xxx.xxx.xxx ring
> Address         Status State   Load            Token                                
      
> xxx.xxx.xxx.xxx    Up     Normal  15.68 KB        4651007657733380128761844779849198747
   
> 
> I appreciate any help you can give.
> Thank you.


Mime
View raw message