我尝试将 cassandra 1.2.13
升级到 cassandra 2.0.5
,但遇到了一些问题。我按照此处的说明进行操作:
https://github.com/apache/cassandra/blob/trunk/NEWS.txt
它说:
2.0.5
=====
...
Upgrading
---------
- If your cluster began on a version before 1.2, check that your secondary
index SSTables are on version 'ic' before upgrading. If not, run
'nodetool upgradesstables' if on 1.2.14 or later, or run 'nodetool
upgradesstables ks cf' with the keyspace and secondary index named
explicitly otherwise...
所以,由于我还没有初始化任何重要的东西(任何表/kspaces之类的东西),所以我做了:
nodetool upgradesstables
但是,当我执行该命令时,会出现以下错误:
objc[88756]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
我尝试用谷歌搜索该错误,但仍然不确定如何继续。有人知道如何在不破坏java环境的情况下解决这个问题吗?
我有 MAC OS X 10.9.1
最佳答案
这是 JDK 1.7.0_45 中的一个错误。你必须升级你的jdk。
另请参阅Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined
关于java - 更新cassandra数据库的问题和java问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22164662/