`
kevin.wang
  • 浏览: 250799 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Cassandra集群

阅读更多
版本:apache-cassandra-1.0.0

机器A:192.168.1.2
机器B:192.168.1.3

1.按需要修改A,B
      conf/cassandra.yaml,
      conf/log4j-server.properties,
      conf/log4j-tools.properties
  日志路径

2. 修改A,B:conf/cassandra.yaml
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
      parameters:
          # seeds is actually a comma-delimited list of addresses.
          # Ex: "<ip1>,<ip2>,<ip3>"
          - seeds: "192.168.1.2,192.168.1.3"
 
  A:
  listen_address: 192.168.1.2
  rpc_address: 192.168.1.2
rpc_port: 9160

  B:
  listen_address: 192.168.1.3
  rpc_address: 192.168.1.3
rpc_port: 9160


3. 修改A,B:conf/cassandra.yaml
org.apache.cassandra.locator.PropertyFileSnitch:
#  - Proximity is determined by rack and data center, which are
#  Explicitly configured in cassandra-topology.properties.
endpoint_snitch: org.apache.cassandra.locator.PropertyFileSnitch


4. 修改A,B:conf/cassandra-topology.properties

# Cassandra Node IP=Data Center:Rack
192.168.1.2=DC1:RAC1
192.168.1.3=DC1:RAC2

Over!
分享到:
评论
1 楼 anniecharlotte 2012-10-29  
请问:如果登录某个节点
执行nodetool ring查看集群信息时,假设我有两个节点,他们的Effective-Ownership都是100%,是什么原因呢?集群的节点没有启动cassdandra?

相关推荐

Global site tag (gtag.js) - Google Analytics