cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Jirsa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-13945) How to change from Cassandra 1 to Cassandra 2
Date Mon, 23 Oct 2017 03:56:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-13945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16214602#comment-16214602
] 

Jeff Jirsa commented on CASSANDRA-13945:
----------------------------------------

Agree that this probably isn't a bug. 

{quote}
during startup java.lang.RuntimeException: Incompatible SSTable found.
Current version jb is unable to read file:
/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hf-2.
{quote}

-hf- is 1.1 era sstables
-jb- is 2.0 - you're either trying to upgrade to 2.0 from 1.1 (which isn't supported, you
need to go through 1.2 first), or you upgraded to 1.2 and didn't run upgradesstables.

You should be able to startup in 1.2, run upgradesstables, and then continue your upgrade
to 2.0




> How to change from Cassandra 1 to Cassandra 2
> ---------------------------------------------
>
>                 Key: CASSANDRA-13945
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13945
>             Project: Cassandra
>          Issue Type: Wish
>          Components: Documentation and Website
>         Environment: Windows 10 Operating System
>            Reporter: nicole wells
>            Priority: Minor
>
> I am trying to upgrade Cassandra1(https://mindmajix.com/apache-cassandra-training) to
Cassandra 2.. And to do that I upgraded Java (to Java 7) but whenever I execute : cassandra.
Its launching like this :
> {code:java}
> INFO 17:32:41,413 Logging initialized INFO 17:32:41,437 Loading
> settings from file:/etc/cassandra/cassandra.yaml INFO 17:32:41,642
> Data files directories: [/var/lib/cassandra/data] INFO 17:32:41,643
> Commit log directory: /var/lib/cassandra/commitlog INFO 17:32:41,643
> DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
> INFO 17:32:41,643 disk_failure_policy is stop INFO 17:32:41,643
> commit_failure_policy is stop INFO 17:32:41,647 Global memtable
> threshold is enabled at 986MB INFO 17:32:41,727 Not using
> multi-threaded compaction INFO 17:32:41,869 JVM vendor/version:
> OpenJDK 64-Bit Server VM/1.7.0_55 WARN 17:32:41,869 OpenJDK is not
> recommended. Please upgrade to the newest Oracle Java release INFO
> 17:32:41,869 Heap size: 4137680896/4137680896 INFO 17:32:41,870 Code
> Cache Non-heap memory: init = 2555904(2496K) used = 657664(642K)
> committed = 2555904(2496K) max = 50331648(49152K) INFO 17:32:41,870
> Par Eden Space Heap memory: init = 335544320(327680K) used =
> 80545080(78657K) committed = 335544320(327680K) max =
> 335544320(327680K) INFO 17:32:41,870 Par Survivor Space Heap memory:
> init = 41943040(40960K) used = 0(0K) committed = 41943040(40960K) max
> = 41943040(40960K) INFO 17:32:41,870 CMS Old Gen Heap memory: init = 3760193536(3672064K)
used = 0(0K) committed = 3760193536(3672064K) max
> = 3760193536(3672064K) INFO 17:32:41,872 CMS Perm Gen Non-heap memory: init = 21757952(21248K)
used = 14994304(14642K) committed =
> 21757952(21248K) max = 174063616(169984K) INFO 17:32:41,872 Classpath:
> /etc/cassandra:/usr/share/cassandra/lib/antlr-3.2.jar:/usr/share/cassandra/lib/commons-cli-1.1.jar:/usr/share/cassandra/lib/commons-codec-1.2.jar:/usr/share/cassandra/lib/commons-lang3-3.1.jar:/usr/share/cassandra/lib/compress-lzf-0.8.4.jar:/usr/share/cassandra/lib/concurrentlinkedhashmap-lru-1.3.jar:/usr/share/cassandra/lib/disruptor-3.0.1.jar:/usr/share/cassandra/lib/guava-15.0.jar:/usr/share/cassandra/lib/high-scale-lib-1.1.2.jar:/usr/share/cassandra/lib/jackson-core-asl-1.9.2.jar:/usr/share/cassandra/lib/jackson-mapper-asl-1.9.2.jar:/usr/share/cassandra/lib/jamm-0.2.5.jar:/usr/share/cassandra/lib/jbcrypt-0.3m.jar:/usr/share/cassandra/lib/jline-1.0.jar:/usr/share/cassandra/lib/json-simple-1.1.jar:/usr/share/cassandra/lib/libthrift-0.9.1.jar:/usr/share/cassandra/lib/log4j-1.2.16.jar:/usr/share/cassandra/lib/lz4-1.2.0.jar:/usr/share/cassandra/lib/metrics-core-2.2.0.jar:/usr/share/cassandra/lib/netty-3.6.6.Final.jar:/usr/share/cassandra/lib/reporter-config-2.1.0.jar:/usr/share/cassandra/lib/servlet-api-2.5-20081211.jar:/usr/share/cassandra/lib/slf4j-api-1.7.2.jar:/usr/share/cassandra/lib/slf4j-log4j12-1.7.2.jar:/usr/share/cassandra/lib/snakeyaml-1.11.jar:/usr/share/cassandra/lib/snappy-java-1.0.5.jar:/usr/share/cassandra/lib/snaptree-0.1.jar:/usr/share/cassandra/lib/super-csv-2.1.0.jar:/usr/share/cassandra/lib/thrift-server-internal-only-0.3.3.jar:/usr/share/cassandra/apache-cassandra-2.0.8.jar:/usr/share/cassandra/apache-cassandra.jar:/usr/share/cassandra/apache-cassandra-thrift-2.0.8.jar:/usr/share/cassandra/stress.jar::/usr/share/cassandra/lib/jamm-0.2.5.jar
> INFO 17:32:41,873 JNA not found. Native methods will be disabled. INFO
> 17:32:41,884 Initializing key cache with capacity of 100 MBs. INFO
> 17:32:41,890 Scheduling key cache save to each 14400 seconds (going to
> save all keys). INFO 17:32:41,890 Initializing row cache with capacity
> of 0 MBs INFO 17:32:41,895 Scheduling row cache save to each 0 seconds
> (going to save all keys). INFO 17:32:41,968 Initializing
> system.schema_triggers INFO 17:32:41,985 Initializing
> system.compaction_history INFO 17:32:41,988 Initializing
> system.batchlog INFO 17:32:41,991 Initializing system.sstable_activity
> INFO 17:32:41,994 Initializing system.peer_events INFO 17:32:41,997
> Initializing system.compactions_in_progress INFO 17:32:42,000
> Initializing system.hints ERROR 17:32:42,001 Exception encountered
> during startup java.lang.RuntimeException: Incompatible SSTable found.
> Current version jb is unable to read file:
> /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hf-2.
> Please run upgradesstables. at
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:415)
> at
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:392)
> at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:309) at
> org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:266) at
> org.apache.cassandra.db.Keyspace.open(Keyspace.java:110) at
> org.apache.cassandra.db.Keyspace.open(Keyspace.java:88) at
> org.apache.cassandra.db.SystemKeyspace.checkHealth(SystemKeyspace.java:536)
> at
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:261)
> at
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:496)
> at
> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:585)
> java.lang.RuntimeException: Incompatible SSTable found. Current
> version jb is unable to read file:
> /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hf-2.
> Please run upgradesstables. at
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:415)
> at
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:392)
> at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:309) at
> org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:266) at
> org.apache.cassandra.db.Keyspace.open(Keyspace.java:110) at
> org.apache.cassandra.db.Keyspace.open(Keyspace.java:88) at
> org.apache.cassandra.db.SystemKeyspace.checkHealth(SystemKeyspace.java:536)
> at
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:261)
> at
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:496)
> at
> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:585)
> Exception encountered during startup: Incompatible SSTable found.
> Current version jb is unable to read file:
> /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hf-2.
> Please run upgradesstables.
> {code}
> When i try to execute : upgradesstables (nodetool upgradesstables -h 127.0.0.1 -u root
...) I got this :
> {code:java}
> Failed to connect to '127.0.0.1:7000': Connexion refusée
> {code}
> Can any help me please.
> Thank's
> Gnana sekar



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message