我正在尝试从1.0.12升级到1.1.0,目的是升级到更新版本。我知道我必须错开升级并从一个专业跳到另一个专业,所以这是我们在该链中的第一步。
我在1.0.12上有4个节点的环,并且遵循了以下步骤(注意,这都是在测试环境中)。
启动Casandra后,我很快收到此异常,我不确定如何解决它。任何人都可以摆脱任何光明吗?我已经检查了所有可以找到的日志,但是它们正在回显这个输出。
INFO 09:54:02,208 JNA not found. Native methods will be disabled.
INFO 09:54:02,216 Loading settings from file:/opt/apache-cassandra-1.1.0-rc1/conf/cassandra.yaml
INFO 09:54:02,299 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
INFO 09:54:02,429 Global memtable threshold is enabled at 2362MB
INFO 09:54:02,441 EC2Snitch using region: us-east, zone: 1d.
INFO 09:54:02,531 Upgrade from pre-1.1 version detected: migrating sstables to new directory layout
ERROR 09:54:02,535 Exception encountered during startup
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1954)
at org.apache.cassandra.db.Directories.migrateFile(Directories.java:534)
at org.apache.cassandra.db.Directories.migrateSnapshots(Directories.java:503)
at org.apache.cassandra.db.Directories.migrateSSTables(Directories.java:485)
at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:159)
at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1954)
at org.apache.cassandra.db.Directories.migrateFile(Directories.java:534)
at org.apache.cassandra.db.Directories.migrateSnapshots(Directories.java:503)
at org.apache.cassandra.db.Directories.migrateSSTables(Directories.java:485)
at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:159)
at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
Exception encountered during startup: String index out of range: -1
[1]+ Exit 1 $CASSANDRA_HOME/bin/cassandra