Maximum size and number of datafiles
Hello here, Is it possible to tell me if it possible to choose the maximum size for a datafile to prevent fs saturation. When cassandra choose to add a datafile ? Thanks 4 all your answears. Regards, Bonnet Jonathan.
Re: Opscenter Entreprise work without licence ?
Thanks for all who answear me.
Re: Opscenter Entreprise work without licence ?
Nobody to give an answear ?, perhaps i said something stupid :). I Want just a confirmation that opscenter entreprise doesn't work without a licence.
Data File Mechanism
Hello, If possible, i need to know if it's possible to chose how a file *.db can grow, it's limit and the general mechanism about the data files. There is only one file *.db by column familly for one node (except index-filter-statistics-summary) ?, or when the CF grow cassandra add it one more ? Regards, Bonnet Jonathan.
Re: Restore with archive commitlog
Andrey Ilinykh ailinykh at gmail.com writes: As someone told you this feature was added by Netflix to work with Priam (cassandra management tool). Priam itself uses it for several months only, so I doubt if anybody uses this feature in production. Any way, you can ping guys working on Priam. This is your best bet. https://github.com/Netflix/Priam Let us know if you can figure out how to use it. Thank you, Andrey Hello and thanks for answear, The link is not allowed by my company where i Work, so nobody never manage to make work a restore with archive commit log ? Strange to me to let this option in all new releases of cassandra if it doesn't work. Regards, Bonnet Jonathan.
Re: Try to configure commitlog_archiving.properties
Artur Kronenberg artur.kronenberg at openmarket.com writes: It's been a while since I tried that but here are some things I can think of: * the .log.out seems wrong. Unless your cassandra commitlogs don't end in .log.out. I tried this locally with your script and my commitlogs get extracted to .log files for me. * I never tried the restore procedure on a cluster with multiple nodes. I imagine if you have a quorum defined the replayed commitlog may be ignored because the commitlog write operation is older then the deletion in which case the latter will be returned (nothing in your case) Thanks to take time to answear Artur, When you talkin' about quorum, you think about replication factor or tuneable transaction quorum for consistency ? I work on a multiple node cluster, but for this restore i use a keyspace with no replication on the other node. Regards, Bonnet Jonathan.
Re: Try to configure commitlog_archiving.properties
Hello, As i told you i began to explore restore operations, see my config for archive commit logs: archive_command=/bin/bash /produits/cassandra/scripts/cassandra-archive.sh %path %name restore_command=/bin/bash /produits/cassandra/scripts/cassandra-restore.sh %from %to restore_directories=/produits/cassandra/cassandra_data/archived_commit restore_point_in_time=2013:12:11 17:00:00 My 2 scripts cassandra-archive.sh: bzip2 --best -k $1 mv $1.bz2 /produits/cassandra/cassandra_data/archived_commit/$2.bz2 cassandra-restore.sh: cp -f $1 $2 bzip2 -d $2 For an example, at 2013:12:11 17:30:00 i had truncate a table which belong to a keyspace with no replication on one node, after that i made a nodetool flush. So when i restore to 2013:12:11 17:00:00 i expect to have my table bein fill up again. The node restart with this config correctly, i see my archive commit log come back to my commitlogdirectory, seems bizarre to me that these ones finish by *.out like CommitLog-3-1386927339271.log.out and not just .log. Everything is normal ? When i query my table now, this one is still empty. Finaly my restore doesn't work and i wonder why ? Do i have to make a restore on all nodes ? my keyspace have no replication but perhaps restore need same operation on all node. I miss something, i don't know. Thanks for your help.
Re: Try to configure commitlog_archiving.properties
Bonnet Jonathan. jonathan.bonnet at externe.bnpparibas.com writes: Thanks Artur, You're right i must comment restore directory too. Now i'll try to practice around restore. Regards, Bonnet Jonathan. Hello, As i told you i began to explore restore operations, see my config for archive commit logs: archive_command=/bin/bash /produits/cassandra/scripts/cassandra-archive.sh %path %name restore_command=/bin/bash /produits/cassandra/scripts/cassandra-restore.sh %from %to restore_directories=/produits/cassandra/cassandra_data/archived_commit restore_point_in_time=2013:12:11 17:00:00 My 2 scripts cassandra-archive.sh: bzip2 --best -k $1 mv $1.bz2 /produits/cassandra/cassandra_data/archived_commit/$2.bz2 cassandra-restore.sh: cp -f $1 $2 bzip2 -d $2 For an example, at 2013:12:11 17:30:00 i had truncate a table which belong to a keyspace with no replication on one node, after that i made a nodetool flush. So when i restore to 2013:12:11 17:00:00 i expect to have my table bein fill up again. The node restart with this config correctly, i see my archive commit log come back to my commitlogdirectory, seems bizarre to me that these ones finish by *.out like CommitLog-3-1386927339271.log.out and not just .log. Everything is normal ? When i query my table now, this one is still empty. Finaly my restore doesn't work and i wonder why ? Do i have to make a restore on all nodes ? my keyspace have no replication but perhaps restore need same operation on all node. I miss something, i don't know. Thanks for your help.
Re: Try to configure commitlog_archiving.properties
Artur Kronenberg artur.kronenberg at openmarket.com writes: So, looking at the code: public void maybeRestoreArchive() { if (Strings.isNullOrEmpty(restoreDirectories)) return; for (String dir : restoreDirectories.split(,)) { File[] files = new File(dir).listFiles(); if (files == null) { throw new RuntimeException(Unable to list director + dir); } for (File fromFile : files) { File toFile = new File(DatabaseDescriptor.getCommitLogLocation(), new CommitLogDescriptor(CommitLogSegment.getNextId()).fileName()); String command = restoreCommand.replace(%from, fromFile.getPath()); command = command.replace(%to, toFile.getPath()); try { exec(command); } catch (IOException e) { throw new RuntimeException(e); } } } } I would like someone to confirm that, but it might potentially be a bug. It does the right thing for an empty restore directory. However it ignores the fact that the restore command could be empty. So for you, jonathan, I reckon you have the restore directory set? You don't need that to be set in order to archive (only if you want to restore it). So set your restore_directory property to empty and you should get rid of those errors. The directory needs to be set when you enable the restore command. On a second look, I am almost certain this is a bug, as the maybeArchive command does correctly check for the command to not be empty or null. The maybeRestore command needs to do the same thing for the restoreCommand. If someone confirms, I am happy to raise a bug. cheers, artur On 11/12/13 14:09, Bonnet Jonathan. wrote: Artur Kronenberg artur.kronenberg at openmarket.com writes: hi Bonnet, that doesn't seem to be a problem with your archiving, rather with the restoring. What is your restore command? -- artur Hello, As i told you i began to explore restore operations, see my config for archive commit logs: archive_command=/bin/bash /produits/cassandra/scripts/cassandra-archive.sh %path %name restore_command=/bin/bash /produits/cassandra/scripts/cassandra-restore.sh %from %to restore_directories=/produits/cassandra/cassandra_data/archived_commit restore_point_in_time=2013:12:11 17:00:00 My 2 scripts cassandra-archive.sh: bzip2 --best -k $1 mv $1.bz2 /produits/cassandra/cassandra_data/archived_commit/$2.bz2 cassandra-restore.sh: cp -f $1 $2 bzip2 -d $2 For an example, at 2013:12:11 17:30:00 i had truncate a table which belong to a keyspace with no replication on one node, after that i made a nodetool flush. So when i restore to 2013:12:11 17:00:00 i expect to have my table bein fill up again. The node restart with this config correctly, i see my archive commit log come back to my commitlogdirectory, seems bizarre to me that these ones finish by *.out like CommitLog-3-1386927339271.log.out and not just .log. Everything is normal ? When i query my table now, this one is still empty. Finaly my restore doesn't work and i wonder why ? Do i have to make a restore on all nodes ? my keyspace have no replication but perhaps restore need same operation on all node. I miss something, i don't know. Thanks for your help.
Restore with archive commitlog
Hello, As i told you i began to explore restore operations, see my config for archive commit logs: archive_command=/bin/bash /produits/cassandra/scripts/cassandra-archive.sh %path %name restore_command=/bin/bash /produits/cassandra/scripts/cassandra-restore.sh %from %to restore_directories=/produits/cassandra/cassandra_data/archived_commit restore_point_in_time=2013:12:11 17:00:00 My 2 scripts cassandra-archive.sh: bzip2 --best -k $1 mv $1.bz2 /produits/cassandra/cassandra_data/archived_commit/$2.bz2 cassandra-restore.sh: cp -f $1 $2 bzip2 -d $2 For an example, at 2013:12:11 17:30:00 i had truncate a table which belong to a keyspace with no replication on one node, after that i made a nodetool flush. So when i restore to 2013:12:11 17:00:00 i expect to have my table bein fill up again. The node restart with this config correctly, i see my archive commit log come back to my commitlogdirectory, seems bizarre to me that these ones finish by *.out like CommitLog-3-1386927339271.log.out and not just .log. Everything is normal ? When i query my table now, this one is still empty. Finaly my restore doesn't work and i wonder why ? Do i have to make a restore on all nodes ? my keyspace have no replication but perhaps restore need same operation on all node. I miss something, i don't know. Thanks for your help.
Re: Try to configure commitlog_archiving.properties
Bonnet Jonathan jonathan.bonnet at externe.bnpparibas.com writes: Thanks a lot, It Works, i see commit log bein archived. I'll try tomorrow the restore command. Thanks again. Bonnet Jonathan. Hello, I have restart a node today, and i have an error which seems to be in relation with commitlog archiving: ERROR 14:39:00,435 Exception encountered during startup java.lang.RuntimeException: java.io.IOException: Cannot run program : error=2, No such file or directory at org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive (CommitLogArchiver.java:172) at org.apache.cassandra.db.commitlog.CommitLog.recover (CommitLog.java:104) at org.apache.cassandra.service.CassandraDaemon.setup (CassandraDaemon.java:305) at org.apache.cassandra.service.CassandraDaemon.activate (CassandraDaemon.java:461) at org.apache.cassandra.service.CassandraDaemon.main (CassandraDaemon.java:504) Caused by: java.io.IOException: Cannot run program : error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at org.apache.cassandra.utils.FBUtilities.exec(FBUtilities.java:588) at org.apache.cassandra.db.commitlog.CommitLogArchiver.exec (CommitLogArchiver.java:182) at org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive (CommitLogArchiver.java:168) ... 4 more Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 8 more java.lang.RuntimeException: java.io.IOException: Cannot run program : error=2, No such file or directory at org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive (CommitLogArchiver.java:172) at org.apache.cassandra.db.commitlog.CommitLog.recover (CommitLog.java:104) at org.apache.cassandra.service.CassandraDaemon.setup (CassandraDaemon.java:305) at org.apache.cassandra.service.CassandraDaemon.activate (CassandraDaemon.java:461) at org.apache.cassandra.service.CassandraDaemon.main (CassandraDaemon.java:504) Caused by: java.io.IOException: Cannot run program : error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at org.apache.cassandra.utils.FBUtilities.exec (FBUtilities.java:588) at org.apache.cassandra.db.commitlog.CommitLogArchiver.exec (CommitLogArchiver.java:182) at org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive (CommitLogArchiver.java:168) ... 4 more Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 8 more No help again on the net, nothing change since the last changes in commitlog_archiving.properties. The first time yesterday that i restart there was no problem,and my commitlog bein archived well. Someone can help me, please ? Regards, Bonnet Jonathan.
Re: Try to configure commitlog_archiving.properties
Artur Kronenberg artur.kronenberg at openmarket.com writes: hi Bonnet, that doesn't seem to be a problem with your archiving, rather with the restoring. What is your restore command? -- artur On 11/12/13 13:47, Bonnet Jonathan. wrote: Thanks to answear so fast, I put nothing for restore ? should I ? cause i don't want to restore for the moment. Regards,
Re: Try to configure commitlog_archiving.properties
Thanks Artur, You're right i must comment restore directory too. Now i'll try to practice around restore. Regards, Bonnet Jonathan.
Re: Try to configure commitlog_archiving.properties
Vicky Kak vicky.kak at gmail.com writes: Why, can you give me a good example and the good way to configure archive commit logs ? Take a look at the cassandra code ;) Taking a look to the code ? i'm not a develloper but a DBA, where should i look ? Thank you. Regards, Bonnet Jonathan.
Re: Try to configure commitlog_archiving.properties
Thanks a lot, It Works, i see commit log bein archived. I'll try tomorrow the restore command. Thanks again. Bonnet Jonathan.
Try to configure commitlog_archiving.properties
Hello, I try to configure commitlog_archiving.properties to take advantage of backup and restore at a point of time, but there is no ressources on internet for that. So i need some help. If I understand I have 4 parameters: archive_command= restore_command= restore_directories= restore_point_in_time= Forget for the moment the restore_point_in_time, should i put one command only for the archive_command; my wish is to copy all the commitlogs on another directory: restore_directories=/produits/cassandra/cassandra_data/archived_logs archive_command=/bin/cp - f /produits/cassandra/cassandra_commit/*.log /produits/cassandra/cassandra_ data/archived_logs restore_command=/bin/cp - f /produits/cassandra/cassandra_data/archived_logs/*.log /produits/cassandr a/cassandra_commit But it doesn't work when i restart the node which interest me, it doesn't copy anything. Why, can you give me a good example and the good way to configure archive commit logs ? there's nothing on the net except Datastax Website. Thanks for your answear. Regards, Bonnet Jonathan.
Re: Migration Cassandra 2.0 to Cassandra 2.0.2
Thanks, it works; don't know why first times i upload the package the Apache_Cassandra_2.0.2.jar miss. Now it's here. Thanks again.
Migration Cassandra 2.0 to Cassandra 2.0.2
Thanks Mr Coli and Mr Wee for your answears, Mr Coli What's the difference between deploy binaries and the binary package ? I upload the binary package on the Apache Cassandra Homepage, Am I wrong ? Mr Wee i think you hit the right way, cause my lib directory in my Cassandra_Home are different between the two versions. In the Home for the old version /produits/cassandra/install_cassandra/apache-cassandra-2.0.0/lib i have: [cassandra@s00vl9925761 lib]$ ls -ltr total 14564 -rw-r- 1 cassandra cassandra 123898 Aug 28 15:07 thrift-server-0.3.0.jar -rw-r- 1 cassandra cassandra 42854 Aug 28 15:07 thrift-python-internal-only-0.7.0.zip -rw-r- 1 cassandra cassandra 55066 Aug 28 15:07 snaptree-0.1.jar -rw-r- 1 cassandra cassandra 1251514 Aug 28 15:07 snappy-java-1.0.5.jar -rw-r- 1 cassandra cassandra 270552 Aug 28 15:07 snakeyaml-1.11.jar -rw-r- 1 cassandra cassandra8819 Aug 28 15:07 slf4j-log4j12-1.7.2.jar -rw-r- 1 cassandra cassandra 26083 Aug 28 15:07 slf4j-api-1.7.2.jar -rw-r- 1 cassandra cassandra 134133 Aug 28 15:07 servlet-api-2.5-20081211.jar -rw-r- 1 cassandra cassandra 1128961 Aug 28 15:07 netty-3.5.9.Final.jar -rw-r- 1 cassandra cassandra 80800 Aug 28 15:07 metrics-core-2.0.3.jar -rw-r- 1 cassandra cassandra 134748 Aug 28 15:07 lz4-1.1.0.jar -rw-r- 1 cassandra cassandra 481534 Aug 28 15:07 log4j-1.2.16.jar -rw-r- 1 cassandra cassandra 347531 Aug 28 15:07 libthrift-0.9.0.jar -rw-r- 1 cassandra cassandra 16046 Aug 28 15:07 json-simple-1.1.jar -rw-r- 1 cassandra cassandra 91183 Aug 28 15:07 jline-1.0.jar -rw-r- 1 cassandra cassandra 17750 Aug 28 15:07 jbcrypt-0.3m.jar -rw-r- 1 cassandra cassandra5792 Aug 28 15:07 jamm-0.2.5.jar -rw-r- 1 cassandra cassandra 765648 Aug 28 15:07 jackson-mapper-asl-1.9.2.jar -rw-r- 1 cassandra cassandra 228286 Aug 28 15:07 jackson-core-asl-1.9.2.jar -rw-r- 1 cassandra cassandra 96046 Aug 28 15:07 high-scale-lib-1.1.2.jar -rw-r- 1 cassandra cassandra 1891110 Aug 28 15:07 guava-13.0.1.jar -rw-r- 1 cassandra cassandra 66843 Aug 28 15:07 disruptor-3.0.1.jar -rw-r- 1 cassandra cassandra 91982 Aug 28 15:07 cql-internal-only-1.4.0.zip -rw-r- 1 cassandra cassandra 54345 Aug 28 15:07 concurrentlinkedhashmap-lru-1.3.jar -rw-r- 1 cassandra cassandra 25490 Aug 28 15:07 compress-lzf-0.8.4.jar -rw-r- 1 cassandra cassandra 284220 Aug 28 15:07 commons-lang-2.6.jar -rw-r- 1 cassandra cassandra 30085 Aug 28 15:07 commons-codec-1.2.jar -rw-r- 1 cassandra cassandra 36174 Aug 28 15:07 commons-cli-1.1.jar -rw-r- 1 cassandra cassandra 1695790 Aug 28 15:07 apache-cassandra-thrift-2.0.0.jar -rw-r- 1 cassandra cassandra 71117 Aug 28 15:07 apache-cassandra-clientutil-2.0.0.jar -rw-r- 1 cassandra cassandra 3265185 Aug 28 15:07 apache-cassandra-2.0.0.jar -rw-r- 1 cassandra cassandra 1928009 Aug 28 15:07 antlr-3.2.jar drwxr-x--- 2 cassandra cassandra4096 Oct 1 14:16 licenses In my new home i have /produits/cassandra/install_cassandra/apache-cassandra-2.0.2/lib: [cassandra@s00vl9925761 lib]$ ls -ltr total 9956 -rw-r- 1 cassandra cassandra 123920 Oct 24 09:21 thrift-server-0.3.2.jar -rw-r- 1 cassandra cassandra 52477 Oct 24 09:21 thrift-python-internal-only-0.9.1.zip -rw-r- 1 cassandra cassandra 55066 Oct 24 09:21 snaptree-0.1.jar -rw-r- 1 cassandra cassandra 1251514 Oct 24 09:21 snappy-java-1.0.5.jar -rw-r- 1 cassandra cassandra 270552 Oct 24 09:21 snakeyaml-1.11.jar -rw-r- 1 cassandra cassandra 26083 Oct 24 09:21 slf4j-api-1.7.2.jar -rw-r- 1 cassandra cassandra 22291 Oct 24 09:21 reporter-config-2.1.0.jar -rw-r- 1 cassandra cassandra 1206119 Oct 24 09:21 netty-3.6.6.Final.jar -rw-r- 1 cassandra cassandra 82123 Oct 24 09:21 metrics-core-2.2.0.jar -rw-r- 1 cassandra cassandra 165505 Oct 24 09:21 lz4-1.2.0.jar -rw-r- 1 cassandra cassandra 217054 Oct 24 09:21 libthrift-0.9.1.jar -rw-r- 1 cassandra cassandra 16046 Oct 24 09:21 json-simple-1.1.jar -rw-r- 1 cassandra cassandra 91183 Oct 24 09:21 jline-1.0.jar -rw-r- 1 cassandra cassandra 17750 Oct 24 09:21 jbcrypt-0.3m.jar -rwxrwxrwx 1 cassandra cassandra5792 Oct 24 09:21 jamm-0.2.5.jar -rw-r- 1 cassandra cassandra 765648 Oct 24 09:21 jackson-mapper-asl-1.9.2.jar -rw-r- 1 cassandra cassandra 228286 Oct 24 09:21 jackson-core-asl-1.9.2.jar -rw-r- 1 cassandra cassandra 96046 Oct 24 09:21 high-scale-lib-1.1.2.jar -rw-r- 1 cassandra cassandra 2172168 Oct 24 09:21 guava-15.0.jar -rw-r- 1 cassandra cassandra 66843 Oct 24 09:21 disruptor-3.0.1.jar -rw-r- 1 cassandra cassandra 92738 Oct 24 09:21 cql-internal-only-1.4.1.zip -rw-r- 1 cassandra cassandra 25490 Oct 24 09:21 compress-lzf-0.8.4.jar -rw-r- 1 cassandra cassandra 315805 Oct 24 09:21 commons-lang3-3.1.jar -rw-r- 1 cassandra cassandra 30085 Oct 24 09:21 commons-codec-1.2.jar -rw-r- 1 cassandra cassandra
Re: Migration Cassandra 2.0 to Cassandra 2.0.2
Jason Wee peichieh at gmail.com writes: I had the same version upgrade path you had but using debian binary package. Looks like it could be the java cannot find the main class, try find out by executing ps and grep for the cassandra process, then it should show a lot of classpath, check if you apache-cassandra-2.0.2.jar in the classpath. also, check on the jar file read permission. /Jason On Thu, Nov 21, 2013 at 2:30 AM, Robert Coli rcoli at eventbrite.com wrote: On Wed, Nov 20, 2013 at 5:44 AM, Bonnet Jonathan. jonathan.bonnet at externe.bnpparibas.com wrote: So i Deploy the binaries of the new version, and configure my cassandra.yaml with the same informations as before. Why deploy binaries instead of a binary package? =Rob Thanks Mr Coli and Mr Wee for your answears, Mr Coli What's the difference between deploy binaries and the binary package ? I upload the binary package on the Apache Cassandra Homepage, Am I wrong ? Mr Wee i think you hit the right way, cause my lib directory in my Cassandra_Home are different between the two versions. In the Home for the old version /produits/cassandra/install_cassandra/apache-cassandra-2.0.0/lib i have: [cassandra at s00vl9925761 lib]$ ls -ltr total 14564 -rw-r- 1 cassandra cassandra 123898 Aug 28 15:07 thrift-server-0.3.0.jar -rw-r- 1 cassandra cassandra 42854 Aug 28 15:07 thrift-python-internal-only-0.7.0.zip -rw-r- 1 cassandra cassandra 55066 Aug 28 15:07 snaptree-0.1.jar -rw-r- 1 cassandra cassandra 1251514 Aug 28 15:07 snappy-java-1.0.5.jar -rw-r- 1 cassandra cassandra 270552 Aug 28 15:07 snakeyaml-1.11.jar -rw-r- 1 cassandra cassandra8819 Aug 28 15:07 slf4j-log4j12-1.7.2.jar -rw-r- 1 cassandra cassandra 26083 Aug 28 15:07 slf4j-api-1.7.2.jar -rw-r- 1 cassandra cassandra 134133 Aug 28 15:07 servlet-api-2.5-20081211.jar -rw-r- 1 cassandra cassandra 1128961 Aug 28 15:07 netty-3.5.9.Final.jar -rw-r- 1 cassandra cassandra 80800 Aug 28 15:07 metrics-core-2.0.3.jar -rw-r- 1 cassandra cassandra 134748 Aug 28 15:07 lz4-1.1.0.jar -rw-r- 1 cassandra cassandra 481534 Aug 28 15:07 log4j-1.2.16.jar -rw-r- 1 cassandra cassandra 347531 Aug 28 15:07 libthrift-0.9.0.jar -rw-r- 1 cassandra cassandra 16046 Aug 28 15:07 json-simple-1.1.jar -rw-r- 1 cassandra cassandra 91183 Aug 28 15:07 jline-1.0.jar -rw-r- 1 cassandra cassandra 17750 Aug 28 15:07 jbcrypt-0.3m.jar -rw-r- 1 cassandra cassandra5792 Aug 28 15:07 jamm-0.2.5.jar -rw-r- 1 cassandra cassandra 765648 Aug 28 15:07 jackson-mapper-asl-1.9.2.jar -rw-r- 1 cassandra cassandra 228286 Aug 28 15:07 jackson-core-asl-1.9.2.jar -rw-r- 1 cassandra cassandra 96046 Aug 28 15:07 high-scale-lib-1.1.2.jar -rw-r- 1 cassandra cassandra 1891110 Aug 28 15:07 guava-13.0.1.jar -rw-r- 1 cassandra cassandra 66843 Aug 28 15:07 disruptor-3.0.1.jar -rw-r- 1 cassandra cassandra 91982 Aug 28 15:07 cql-internal-only-1.4.0.zip -rw-r- 1 cassandra cassandra 54345 Aug 28 15:07 concurrentlinkedhashmap-lru-1.3.jar -rw-r- 1 cassandra cassandra 25490 Aug 28 15:07 compress-lzf-0.8.4.jar -rw-r- 1 cassandra cassandra 284220 Aug 28 15:07 commons-lang-2.6.jar -rw-r- 1 cassandra cassandra 30085 Aug 28 15:07 commons-codec-1.2.jar -rw-r- 1 cassandra cassandra 36174 Aug 28 15:07 commons-cli-1.1.jar -rw-r- 1 cassandra cassandra 1695790 Aug 28 15:07 apache-cassandra-thrift-2.0.0.jar -rw-r- 1 cassandra cassandra 71117 Aug 28 15:07 apache-cassandra-clientutil-2.0.0.jar -rw-r- 1 cassandra cassandra 3265185 Aug 28 15:07 apache-cassandra-2.0.0.jar -rw-r- 1 cassandra cassandra 1928009 Aug 28 15:07 antlr-3.2.jar drwxr-x--- 2 cassandra cassandra4096 Oct 1 14:16 licenses In my new home i have /produits/cassandra/install_cassandra/apache-cassandra-2.0.2/lib: [cassandra at s00vl9925761 lib]$ ls -ltr total 9956 -rw-r- 1 cassandra cassandra 123920 Oct 24 09:21 thrift-server-0.3.2.jar -rw-r- 1 cassandra cassandra 52477 Oct 24 09:21 thrift-python-internal-only-0.9.1.zip -rw-r- 1 cassandra cassandra 55066 Oct 24 09:21 snaptree-0.1.jar -rw-r- 1 cassandra cassandra 1251514 Oct 24 09:21 snappy-java-1.0.5.jar -rw-r- 1 cassandra cassandra 270552 Oct 24 09:21 snakeyaml-1.11.jar -rw-r- 1 cassandra cassandra 26083 Oct 24 09:21 slf4j-api-1.7.2.jar -rw-r- 1 cassandra cassandra 22291 Oct 24 09:21 reporter-config-2.1.0.jar -rw-r- 1 cassandra cassandra 1206119 Oct 24 09:21 netty-3.6.6.Final.jar -rw-r- 1 cassandra cassandra 82123 Oct 24 09:21 metrics-core-2.2.0.jar -rw-r- 1 cassandra cassandra 165505 Oct 24 09:21 lz4-1.2.0.jar -rw-r- 1 cassandra cassandra 217054 Oct 24 09:21 libthrift-0.9.1.jar -rw-r- 1 cassandra cassandra 16046 Oct 24 09:21 json-simple-1.1.jar -rw-r- 1 cassandra cassandra 91183 Oct 24 09:21 jline-1.0.jar -rw-r- 1 cassandra cassandra 17750 Oct 24 09:21 jbcrypt-0.3m.jar
Migration Cassandra 2.0 to Cassandra 2.0.2
Hello, I met some problems during an upgrade version, my source is Cassandra 2.0 and my target is Cassandra 2.0.2. My cluster have 3 nodes in the same datacenter, and i will upgrade them one by one. So i Deploy the binaries of the new version, and configure my cassandra.yaml with the same informations as before. I also make an environnement file like this one (a copy of the old one): export PATH=$PATH:/produits/cassandra/install_cassandra/jre1.7.0_25/bin: /produits/cassandra/install_cassandra/jre1.7.0_25/lib: /produits/cassandra/install_cassandra/apache-cassandra-2.0.2/bin: /produits/cassandra/install_cassandra/apache-cassandra-2.0.2/lib: /produits/cassandra/install_opscenter/opscenter-3.2.0/bin: /produits/cassandra/install_opscenter/opscenter-3.2.0/agent: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin export JAVA_HOME=/produits/cassandra/install_cassandra/jre1.7.0_25 export CASSANDRA_HOME=/produits/cassandra/install_cassandra/apache-cassandra-2.0.2 export JVM_OPTS=-Dorg.xerial.snappy.tempdir=/produits/cassandra/snappy Nothing change in this 2 files except the new home for Cassandra, i keep the same DATA_FILE_DIRECTORIES,commitlog_directory and saved_caches_directory, same cluster name and same cassandra-topology.properties. I just have change my log4j.appender.R.File=/produits/cassandra/system_log.log in log4j-server.properties. So on the first node i used these commands: nodetool –h 10.250.176.128 disablegossip nodetool –h 10.250.176.128 disablethrift nodetool -h 10.250.176.128 snapshot nodetool -h 10.250.176.128 drain cassandra stop I also comment the num_tokens cause i use vnodes, and decomment initial_token and let a blank for this parameter. Next i load my new environement files, all variables seems correct but when i try to start the node i had these errors. [cassandra@s00vl9925761 conf]$ Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon I search on the net, and all forums which speak about this error tell me that i have problem with my environment variables. But my variables are all looking good, so i really need help on this. When i come back to the older version, cassandra always start without problems. Thanks.