【发布时间】:2011-08-06 03:28:18
【问题描述】:
我已经设置了我的单节点 Cassandra 0.7.4 并启动了服务 bin/cassandra -f。现在我正在尝试使用 Hector API (v. 0.7.0) 来管理 D B。 Cassandra CLI 运行良好,我可以创建键空间等。
我尝试运行测试示例并创建一个键空间:
Cluster cluster = HFactory.getOrCreateCluster("TestCluster",
new CassandraHostConfigurator("localhost:9160"));
Keyspace keyspace = HFactory.createKeyspace("Keyspace1", cluster);
但我得到的只是:
2011-04-14 22:20:27,469 [main ] INFO
me.prettyprint.cassandra.connection.CassandraHostRetryService
- Downed Host
Retry service started with queue size -1 and retry delay 10s
2011-04-14 22:20:27,492 [main ] DEBUG
me.prettyprint.cassandra.connection.HThriftClient -
Transport open status false
for client CassandraClient<localhost:9160-1>
....this again about 20 times
me.prettyprint.cassandra.service.JmxMonitor - Registering JMX
me.prettyprint.cassandra.service_TestCluster:ServiceType=hector,
MonitorType=hector
2011-04-14 22:20:27,636 [Thread-0 ] INFO
me.prettyprint.cassandra.connection.CassandraHostRetryService -
Downed Host
retry shutdown hook called
2011-04-14 22:20:27,646 [Thread-0 ] INFO
me.prettyprint.cassandra.connection.CassandraHostRetryService -
Downed Host
retry shutdown complete
你能告诉我我做错了什么吗? 谢谢
【问题讨论】:
标签: nosql cassandra cassandra-0.7