问题:drop keyspace MyKeyspace;
挂起。删除密钥空间挂起
环境: 这是一个Ubuntu 12.04 64位virtualbox,运行一个Cassandra实例(在开发机器上)。
Cassandra是1.1.6:
[email protected]:~$ /usr/bin/nodetool -h localhost version
ReleaseVersion: 1.1.6
充足的可用磁盘空间:
[email protected]:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/myhost-root 100232772 3100308 92112816 4%/
udev 1016760 4 1016756 1% /dev
tmpfs 410340 268 410072 1% /run
none 5120 0 5120 0% /run/lock
none 1025844 0 1025844 0% /run/shm
/dev/sda1 233191 24999 195751 12% /boot
设备处于闲置状态:我
[email protected]:~$ uptime
21:24:50 up 3:46, 2 users, load average: 0.06, 0.04, 0.05
如何到达那里:
机器运行另一个分贝,很长时间都很好。现在我创建了一个新的密钥空间MyKeyspace,然后运行一个Java程序来导入数据(使用titan图形,但这不重要)。进口记录一对夫妇一千(一对夫妇MB的只有)进口方案没有取得进展了,而且之后记录6次:
418455 [RetryService : myhost(192.168.1.241):9160] INFO com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor - Reactivating myhost
然后我的程序(实际上泰坦图)放弃了:
com.thinkaurelius.titan.diskstorage.TemporaryStorageException: Temporary failure in storage backend
在此期间,我连接到/usr/bin/cassandra-cli
并可能成功执行show keyspaces;
。
然后我决定重新开始;放下密钥空间。这就是现在它挂起几个小时的地方。它也不响应ctrl-c。同时我可以通过ssh登录,与cassandra-cli连接,然后运行show keyspaces;
。密钥空间仍然存在。此外,我的Java应用程序可以访问该数据存储,但它是只读的。阅读成功,但写入失败。这只是一个超时写,当我从泰坦图形库得到:
com.thinkaurelius.titan.core.TitanException: ID renewal thread on partition [2] did not complete in time. [60007 ms]
我可以运行,看看发生了什么事情的任何命令?我应该报告一个错误吗?
Cassandra的日志中是否有例外?日志通常位于/var/log/cassandra/system.log中。 – Richard