Re: Which Java on Fedora? Sun's or GNU's?
I met with native memory leak with OpenJDK. Still try to figure it out... best regards, hanzhu On Wed, Dec 29, 2010 at 6:11 PM, Peter Schuller peter.schul...@infidyne.com wrote: Which is best? Which is preferred? If by GNU you mean the gcj stuff, then absolutely no. :) If you mean OpenJDK it's less obvious but I believe the general recommendation is to go with the Sun JVM. -- / Peter Schuller
Re: Which Java on Fedora? Sun's or GNU's?
On Wed, 2010-12-29 at 11:11 +0100, Peter Schuller wrote: Which is best? Which is preferred? If by GNU you mean the gcj stuff, then absolutely no. :) If you mean OpenJDK it's less obvious but I believe the general recommendation is to go with the Sun JVM. FWIW, I'm using OpenJDK with Cassandra (always have) and haven't had any problems. -- Eric Evans eev...@rackspace.com
Re: Which Java on Fedora? Sun's or GNU's?
On Tue, 2010-12-28 at 19:32 -0700, AJ wrote: Which is best? Which is preferred? The RPM depends on java = 1.6.0, so you need something that provides that. Maybe someone who uses Redhat can chime in with what exactly? Does Fedora have OpenJDK packages? -- Eric Evans eev...@rackspace.com
Re: Which Java on Fedora? Sun's or GNU's?
On Wed, 2010-12-29 at 10:56 -0500, Edward Capriolo wrote: Cassandra pushes your JVM hard. Do not count on your distro which might provide versions of things that are 3 months to 2 years old. Come on. If it worked fine 3 months ago, then chances are it will continue to. This is one of the reasons that people choose (environmentally )stable distro releases (which are often supported for much longer than 2 years). Chosing what your distro gives your prepare to be disappointed and have to upgrade as soon as you get some respectable load. If you are using sun/oracle (That still feels strange to say JVM oracle) you want something much higher then just 1.6.0. Go for the latest and greatest 1.6.21 or higher JRE/JDK 1.6.23. FWIW, the wiki says: For Sun's jvm, this means at least u19; u21 is better. I install the JDK (not the JRE) because its a super set and hey I just might feel like compiling something. Other not so great options... rpm -Uvh --force --skip-deps (If you know you have a Java that your RPM manager does not know about) No. If this is really the situation, then it's disingenuous to offer the package at all, and it should be dropped. I don't think these command line arguments should ever appear on a public mailing list. Get source RPM strip out the Java dependency (If you know you have a Java that your RPM manager does not know about) Create a source RPM with nothing in it that PROVIDES JAVA (If you know you have a Java that your RPM manager does not know about) -- Eric Evans eev...@rackspace.com
Re: Which Java on Fedora? Sun's or GNU's?
On Wed, Dec 29, 2010 at 11:29 AM, Eric Evans eev...@rackspace.com wrote: On Wed, 2010-12-29 at 10:56 -0500, Edward Capriolo wrote: Cassandra pushes your JVM hard. Do not count on your distro which might provide versions of things that are 3 months to 2 years old. Come on. If it worked fine 3 months ago, then chances are it will continue to. This is one of the reasons that people choose (environmentally )stable distro releases (which are often supported for much longer than 2 years). Chosing what your distro gives your prepare to be disappointed and have to upgrade as soon as you get some respectable load. If you are using sun/oracle (That still feels strange to say JVM oracle) you want something much higher then just 1.6.0. Go for the latest and greatest 1.6.21 or higher JRE/JDK 1.6.23. FWIW, the wiki says: For Sun's jvm, this means at least u19; u21 is better. I install the JDK (not the JRE) because its a super set and hey I just might feel like compiling something. Other not so great options... rpm -Uvh --force --skip-deps (If you know you have a Java that your RPM manager does not know about) No. If this is really the situation, then it's disingenuous to offer the package at all, and it should be dropped. I don't think these command line arguments should ever appear on a public mailing list. Get source RPM strip out the Java dependency (If you know you have a Java that your RPM manager does not know about) Create a source RPM with nothing in it that PROVIDES JAVA (If you know you have a Java that your RPM manager does not know about) -- Eric Evans eev...@rackspace.com If it worked fine three months ago and you came into Cassandra IRC with a random JVM problem the first thing someone would tell you to do is probably update to the latest JVM :) Some distro's go for perceived stability over bug/performance enhancements in there package choices. For example (a major unnamed linux distribution) still ships mysql 5.0 rather then 5.1, or BerkelyDB that NEVER gets upgraded. Why? Tracking these packages and all the downstream changes from code that links to mysql or BDB would result in way to much churn, that would make them look less stable and enterprise like. Another major distribution allows anyone to submit a package, as a result they end up with hundreds/thousands of packages that NEVER get updated or supported in any meaningful way. As for Cassandra there are two key components Java and Cassandra. If you are just taking whatever the distro gives you for these things, you should probably do more research. As to not letting the cat out of the bag on what you can do with RPM. I agree, half heartedly. RPM is a glorified tar, and when it begins insisting you need 40 dependent libraries you do not really need (which is very common especially in the RPM Java world) because some applet in the buried in an example somewhere just might need x11Well I am more likely to edit the source RPM and make myself happy then let RPM install all of gnome just so the RPM is happy. In this case OpenJDK or SUN should meet the java =1.6.0 requirement. Edward
Re: Any GUI for Cassandra database on Windows?
The error you mentioned sounds like one of the server/client is using TFramedTransport and the other one TSocket. I saw the same error when that happened. On Mon, Dec 27, 2010 at 9:15 PM, Roshan Dawrani roshandawr...@gmail.comwrote: Sorry. Will do that. I am using Cassandra 0.7.0-rc2. I will try this DB client. Thanks. On Tue, Dec 28, 2010 at 10:41 AM, Narendra Sharma narendra.sha...@gmail.com wrote: Please do mention the Cassandra version you are using in all ur queries. It helps. Try https://github.com/driftx/chiton Thanks, Naren On Mon, Dec 27, 2010 at 7:37 PM, Roshan Dawrani roshandawr...@gmail.comwrote: Hi, Is there a GUI client for a Cassandra database for a Windows based setup? I tried the one available at http://code.google.com/p/cassandra-gui/, but it always fails to connect with error: Cannot read. Remote site has closed. Tried to read 4 bytes, but only got 0 bytes. -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani http://twitter.com/roshandawrani Skype: roshandawrani -- Patricio.-
Re: Any GUI for Cassandra database on Windows?
cassandra-gui doesn't work with Cassandra 0.7. It could be due to thrift version difference, api differences or default framed mode. Better to switch to something that works for sure. Thanks, -Naren On Mon, Dec 27, 2010 at 9:15 PM, Roshan Dawrani roshandawr...@gmail.comwrote: Sorry. Will do that. I am using Cassandra 0.7.0-rc2. I will try this DB client. Thanks. On Tue, Dec 28, 2010 at 10:41 AM, Narendra Sharma narendra.sha...@gmail.com wrote: Please do mention the Cassandra version you are using in all ur queries. It helps. Try https://github.com/driftx/chiton Thanks, Naren On Mon, Dec 27, 2010 at 7:37 PM, Roshan Dawrani roshandawr...@gmail.comwrote: Hi, Is there a GUI client for a Cassandra database for a Windows based setup? I tried the one available at http://code.google.com/p/cassandra-gui/, but it always fails to connect with error: Cannot read. Remote site has closed. Tried to read 4 bytes, but only got 0 bytes. -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani http://twitter.com/roshandawrani Skype: roshandawrani
Re: 0.7RC1 local_quorum - TimedOutException
In an attempt to replicate this error on a simpler system I have come across a different error but seemingly related problem. Now I am getting the following exception in system.log. DEBUG [pool-1-thread-3] 2010-12-29 12:10:38,897 CassandraServer.java (line 362) insert ERROR [pool-1-thread-3] 2010-12-29 12:10:38,906 Cassandra.java (line 2960) Internal error processing insert java.lang.AssertionError at org.apache.cassandra.locator.TokenMetadata.firstTokenIndex(TokenMetadata.java:392) at org.apache.cassandra.locator.TokenMetadata.ringIterator(TokenMetadata.java:417) at org.apache.cassandra.locator.NetworkTopologyStrategy.calculateNaturalEndpoints(NetworkTopologyStrategy.java:95) at org.apache.cassandra.locator.AbstractReplicationStrategy.getNaturalEndpoints(AbstractReplicationStrategy.java:99) at org.apache.cassandra.service.StorageService.getNaturalEndpoints(StorageService.java:1411) at org.apache.cassandra.service.StorageService.getNaturalEndpoints(StorageService.java:1394) at org.apache.cassandra.service.StorageProxy.mutate(StorageProxy.java:109) at org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:442) at org.apache.cassandra.thrift.CassandraServer.insert(CassandraServer.java:379) at org.apache.cassandra.thrift.Cassandra$Processor$insert.process(Cassandra.java:2952) at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555) at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Looking at TokenMetadata.java:392, the assert that is triggered is: assert ring.size() 0; Which led me to run nodetool ring which outputs a seemingly correct config: -sh-3.2$ nodetool -h localhost -p 8080 ring Address Status State LoadOwnsToken 10.5.64.26 Up Normal 47.16 KB100.00% 1 To reproduce: * I have upgraded to 0.7RC3 so install the latest riptano 0.7rc3 rpm on a single node in DC1. * In cassandra.yaml set initial_token = 1 * cassandra-topology.properties: 10.5.64.26=DC1:R1 default=DC2:R1 * Schema loaded via cassandra-cli: create keyspace KeyspaceDC1 with replication_factor = 1 and placement_strategy = 'org.apache.cassandra.locator.NetworkTopologyStrategy' and strategy_options = [{DC1:1, DC2:0}]; use KeyspaceDC1; create column family TestCF with column_type = 'Standard' and comparator = 'BytesType' and keys_cached = 20 and rows_cached = 2000 and gc_grace = 0 and read_repair_chance = 0.0; * In cassandra-cli execute the following: [defa...@unknown] use KeyspaceDC1; Authenticated to keyspace: KeyspaceDC1 [defa...@keyspacedc1] set TestCF['some key']['some col'] = 'some value'; Internal error processing insert * Check system.log where you should find the above assertion error. Can anybody find a flaw in this setup? Do others agree something looks buggy? Thanks, -Thor On Dec 28, 2010, at 4:33 PM, Thor Carpenter wrote: Third try for good luck. Maybe this time I'll get it all in one email. :-) At time 15:55 I performed a write with CL = ONE, a subsequent read with CL = ONE and received correct results. Similar results occur with any read CL other than LOCAL_QUORUM. At time 15:58 I performed a write with CL = ONE, a subsequent read with CL = LOCAL_QUORUM and received a TimedOutException. System.log and cassandra.log are from server dlc05-sea to corresponds with the hector error message Closing client CassandraClientdlc05-sea:9160-50. I haven't found anything in the logs that indicates the problem but maybe others with more discerning eyes can. Please let me know if I can provide any additional information. Thanks, -Thor logs.zipATT1..txt
can't re-insert row after deleting it?
things have not been going very well for me today, so maybe there's something that i'm missing, but here is a little test program that just: 1) inserts a single column in a row, 2) deletes the row, 3) re-inserts the row but it seems that the second insert fails to actually insert the data. here is the output of the test program === starting === inserting row: row-a, value: value-a === about to retrieve data === got (dummy-col,value-a) === deleting row: row-a === data not found, as expected === re-inserting row: row-a === re-inserted data not found === crush all boxes and subsequent inserts also fail (if you run the program again). here is the test program CClient.java Description: Binary data i am just using a single node, with the following schema create keyspace Harvest with replication_factor = 1 and placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'; use Harvest; create column family Test1 with column_type = 'Standard' and comparator = 'UTF8Type'; thanks in advance. -mike
Re: can't re-insert row after deleting it?
sorry, i forgot to mention that i am using 0.7-rc2 On Dec 29, 2010, at 7:56 PM, mike dooley wrote: things have not been going very well for me today, so maybe there's something that i'm missing, but here is a little test program that just: 1) inserts a single column in a row, 2) deletes the row, 3) re-inserts the row but it seems that the second insert fails to actually insert the data. here is the output of the test program === starting === inserting row: row-a, value: value-a === about to retrieve data === got (dummy-col,value-a) === deleting row: row-a === data not found, as expected === re-inserting row: row-a === re-inserted data not found === crush all boxes and subsequent inserts also fail (if you run the program again). here is the test program CClient.java i am just using a single node, with the following schema create keyspace Harvest with replication_factor = 1 and placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'; use Harvest; create column family Test1 with column_type = 'Standard' and comparator = 'UTF8Type'; thanks in advance. -mike
Re: can't re-insert row after deleting it?
deletes win races, so if 3) happens at the same timestamp as 2) then the delete takes precedence. On Wed, Dec 29, 2010 at 9:58 PM, mike dooley doo...@apple.com wrote: sorry, i forgot to mention that i am using 0.7-rc2 On Dec 29, 2010, at 7:56 PM, mike dooley wrote: things have not been going very well for me today, so maybe there's something that i'm missing, but here is a little test program that just: 1) inserts a single column in a row, 2) deletes the row, 3) re-inserts the row but it seems that the second insert fails to actually insert the data. here is the output of the test program === starting === inserting row: row-a, value: value-a === about to retrieve data === got (dummy-col,value-a) === deleting row: row-a === data not found, as expected === re-inserting row: row-a === re-inserted data not found === crush all boxes and subsequent inserts also fail (if you run the program again). here is the test program CClient.java i am just using a single node, with the following schema create keyspace Harvest with replication_factor = 1 and placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'; use Harvest; create column family Test1 with column_type = 'Standard' and comparator = 'UTF8Type'; thanks in advance. -mike -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com
Re: WELCOME to user@cassandra.apache.org
Hmm... what about just paying for it? It cost less than $20 on Amazon for the Kindle version... (http://www.amazon.com/Cassandra-Definitive-Guide-Eben-Hewitt/dp/1449390412). // Germán Kondolf http://twitter.com/germanklf http://code.google.com/p/seide/ // @iPad On 30/12/2010, at 01:26, asil klin asdk...@gmail.com wrote: Can anyone pass me a pdf copy of Cassandra The Definitive Guide ? Thanks. Asil
Re: WELCOME to user@cassandra.apache.org
Can't I get it for free from anywhere? I am a student researching on Cassandra datastore and have no economically profitable reasons to buy? If anyone of you could pass me a copy to my email address:* asdk...@gmail.com* Thanks so much ! Asil On Thu, Dec 30, 2010 at 10:10 AM, Germán Kondolf german.kond...@gmail.comwrote: Hmm... what about just paying for it? It cost less than $20 on Amazon for the Kindle version... ( http://www.amazon.com/Cassandra-Definitive-Guide-Eben-Hewitt/dp/1449390412 ). // Germán Kondolf http://twitter.com/germanklf http://code.google.com/p/seide/ // @iPad On 30/12/2010, at 01:26, asil klin asdk...@gmail.com wrote: Can anyone pass me a pdf copy of Cassandra The Definitive Guide ? Thanks. Asil
Re: WELCOME to user@cassandra.apache.org
You are asking someone to essentially steal from the author of the book so you can benefit. The person who sends the book to you would be engaged in theft of intellectual property and you would engaged in receiving stolen goods. - Sincerely, David G. Boney dbon...@semanticartifacts.com http://www.semanticartifacts.com On Dec 29, 2010, at 10:51 PM, asil klin wrote: Can't I get it for free from anywhere? I am a student researching on Cassandra datastore and have no economically profitable reasons to buy? If anyone of you could pass me a copy to my email address: asdk...@gmail.com Thanks so much ! Asil On Thu, Dec 30, 2010 at 10:10 AM, Germán Kondolf german.kond...@gmail.com wrote: Hmm... what about just paying for it? It cost less than $20 on Amazon for the Kindle version... (http://www.amazon.com/Cassandra-Definitive-Guide-Eben-Hewitt/dp/1449390412). // Germán Kondolf http://twitter.com/germanklf http://code.google.com/p/seide/ // @iPad On 30/12/2010, at 01:26, asil klin asdk...@gmail.com wrote: Can anyone pass me a pdf copy of Cassandra The Definitive Guide ? Thanks. Asil
Re: WELCOME to user@cassandra.apache.org
Sorry all ..specially Shashank... I should not have asked somthing like this... I am really sorry for hurting you all . I would buy one if I need it.. On Thu, Dec 30, 2010 at 10:35 AM, Shashank Tiwari tsha...@gmail.com wrote: As a book author myself I can only say that the least you can do to respect an author's work is to buy a copy. If you can't afford one, borrow one from a library. Please start with the wiki and all the information online and use this group to ask the questions you have. There are a lot of helpful people on the list and you wouldn't be disappointed. Thanks, Shashank Shashank Tiwari Technology Entrepreneur, Developer and Author (p: *650-485-3459 | **347-625-6745**)* web: www.shanky.org | www.treasuryofideas.com | *Skype,* *Googlehttp://www.google.com/profiles/tshanky , Twitter http://twitter.com/tshanky, LinkedInhttp://www.linkedin.com/in/tshanky * : tshanky books: http://www.amazon.com/Shashank-Tiwari/e/B002BOHNO4/ On Wed, Dec 29, 2010 at 8:58 PM, David G. Boney dbon...@semanticartifacts.com wrote: You are asking someone to essentially steal from the author of the book so you can benefit. The person who sends the book to you would be engaged in theft of intellectual property and you would engaged in receiving stolen goods. - Sincerely, David G. Boney dbon...@semanticartifacts.com http://www.semanticartifacts.com On Dec 29, 2010, at 10:51 PM, asil klin wrote: Can't I get it for free from anywhere? I am a student researching on Cassandra datastore and have no economically profitable reasons to buy? If anyone of you could pass me a copy to my email address:* asdk...@gmail.com* Thanks so much ! Asil On Thu, Dec 30, 2010 at 10:10 AM, Germán Kondolf german.kond...@gmail.com wrote: Hmm... what about just paying for it? It cost less than $20 on Amazon for the Kindle version... ( http://www.amazon.com/Cassandra-Definitive-Guide-Eben-Hewitt/dp/1449390412 ). // Germán Kondolf http://twitter.com/germanklf http://code.google.com/p/seide/ // @iPad On 30/12/2010, at 01:26, asil klin asdk...@gmail.com wrote: Can anyone pass me a pdf copy of Cassandra The Definitive Guide ? Thanks. Asil
Re: WELCOME to user@cassandra.apache.org
The book is available via safarionline.comhttp://safarionline.com - many educational institutions have group memberships and there is a free trial for individuals. It's run by the publishers and the authors get paid. There is a nosql training video there as well. Adrian On Dec 29, 2010, at 8:52 PM, asil klin asdk...@gmail.commailto:asdk...@gmail.com wrote: Can't I get it for free from anywhere? I am a student researching on Cassandra datastore and have no economically profitable reasons to buy? If anyone of you could pass me a copy to my email address: mailto:asdk...@gmail.com asdk...@gmail.commailto:asdk...@gmail.com Thanks so much ! Asil On Thu, Dec 30, 2010 at 10:10 AM, Germán Kondolf mailto:german.kond...@gmail.comgerman.kond...@gmail.commailto:german.kond...@gmail.com wrote: Hmm... what about just paying for it? It cost less than $20 on Amazon for the Kindle version... (http://www.amazon.com/Cassandra-Definitive-Guide-Eben-Hewitt/dp/1449390412http://www.amazon.com/Cassandra-Definitive-Guide-Eben-Hewitt/dp/1449390412). // Germán Kondolf http://twitter.com/germanklfhttp://twitter.com/germanklf http://code.google.com/p/seide/http://code.google.com/p/seide/ // @iPad On 30/12/2010, at 01:26, asil klin mailto:asdk...@gmail.comasdk...@gmail.commailto:asdk...@gmail.com wrote: Can anyone pass me a pdf copy of Cassandra The Definitive Guide ? Thanks. Asil
Query Regarding $PATH/contrib/client_only/ClientOnlyExample.java
Hi list, I am recently working with Casandra. Through my little affort I got this java ClientOnlyExample.java file. (This file come along with Cassandra code check out). I am using this Client because this do not make socket call with Cassandra . As per comment written in the file, this file directly connect to Casandra as per out Command line option read/write. I was trying to run this file but it is giving runtime warning as: log4j:WARN No appenders could be found for logger (org.apache.cassandra.config.DatabaseDescriptor). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Bad configuration; unable to start server Please help me out to solve this problem. I am using this Client because this do not make socket call with Cassandra . Thanks, Paramjeet DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
Re: Which Java on Fedora? Sun's or GNU's?
Eric, Do you use the default GC settings? Can you show me the openJDK version by java -version? Thank you! If everything is the same, I suspect I need to upgrade the kernel. best regards, hanzhu On Wed, Dec 29, 2010 at 11:44 PM, Eric Evans eev...@rackspace.com wrote: On Wed, 2010-12-29 at 11:11 +0100, Peter Schuller wrote: Which is best? Which is preferred? If by GNU you mean the gcj stuff, then absolutely no. :) If you mean OpenJDK it's less obvious but I believe the general recommendation is to go with the Sun JVM. FWIW, I'm using OpenJDK with Cassandra (always have) and haven't had any problems. -- Eric Evans eev...@rackspace.com