Re: [RELEASE] 0.8.0

2011-06-03 Thread Stephen Connolly
Great work! -Stephen P.S. As the release of artifacts to Maven Central is now part of the release process, the artifacts are all available from Maven Central already (for people who use Maven/ANT+Ivy/Gradle/Buildr/etc) On 3 June 2011 00:36, Eric Evans wrote: > > I am very pleased to announce

Re: sync commitlog in batch mode lose data

2011-06-03 Thread Peter Schuller
> I disable the disk cache of RAID controller,  unfortunately it still lost > some data. Disabling caching shouldn't be necessary so much as ensuring that all layers honor write barriers properly. A battery backed cache that survives a power outtage need not be disabled (and usually if you have ba

RE: Performance issues after upgrading to Cassandra 0.7.6-2 from Cassandra 0.6.6

2011-06-03 Thread Nir Cohen
I think that the problem was solved. The servers have 8G Ram, we changed the heap to 6 (instead of 4G), Thanks Kind regards, -Nir SG_Signature_Logo.png Nir Cohen Co-Founder & CTO (+972) 54-242-8419 SimilarWeb | SimilarSites

Re: sync commitlog in batch mode lose data

2011-06-03 Thread Preston Chang
Thank you very much Peter ! After I disable the disk cache and change the cache write mode from write-back to "write-through", I saw the result I'd like to see. It seems fsync() only synced the data to the disk cache but not the storage devices while disk cache sync mode in write-back. But I hav

Cannot recover SSTable with version f (current version g).

2011-06-03 Thread Dikang Gu
Hi guys, I upgrade the 4-nodes cassandra 0.7.4 cluster to 0.8.0. Then, I do the bin/nodetool decommission on one node, the decommission hangs there and I got the following exceptions on others nodes. ERROR [Thread-55] 2011-06-03 18:02:03,500 AbstractCassandraDaemon.java (line 113) Fatal except

Re: Cannot recover SSTable with version f (current version g).

2011-06-03 Thread aaron morton
Could you please create a bug report for this in Jira https://issues.apache.org/jira/browse/CASSANDRA Please check the data directory on the node that encountered the error and include any files names that have "tmp" in them. Can you also check for log messages on the node you decommissioned a

Re: Cannot recover SSTable with version f (current version g).

2011-06-03 Thread Dikang Gu
Hi Aaron, Thank you for your reply, I've reported a bug on the jira https://issues.apache.org/jira/browse/CASSANDRA-2739 . Since I'm not in the office now, so I will come up with more information and try your methods when I'm in the office again, maybe next Monday. Thanks. -- Dikang Gu 0086

Reading quorum

2011-06-03 Thread Fredrik Stigbäck
Does reading quorum mean only waiting for quorum respones or does it mean quorum respones with same latest timestamp? Regards /Fredrik

RE: Reading quorum

2011-06-03 Thread Jeremiah Jordan
Only waiting for quorum responses and then resolving the one with the latest timestamp to return to the client. From: Fredrik Stigbäck [mailto:fredrik.l.stigb...@sitevision.se] Sent: Friday, June 03, 2011 9:44 AM To: user@cassandra.apache.org Subject: Reading qu

Loading Keyspace from YAML in 0.8

2011-06-03 Thread Paul Loy
We embed cassandra in our app. When we first load a cluster, we specify one node in the cluster as the seed node. This node installs the schema using StorageService.instance.loadKeyspacesFromYAML(). This call has disappeared in 0.8. How can we do the same thing in Cassandra 0.8? Thanks, --

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Jeremy Hanna
In 0.8 (and 0.7) you can have a script that you create that you can run on the CLI that creates your schema. We create something like a ddl file and run it on a new cluster. You just pass it to the cli with -f . On Jun 3, 2011, at 11:14 AM, Paul Loy wrote: > We embed cassandra in our app. Whe

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Edward Capriolo
On Fri, Jun 3, 2011 at 12:14 PM, Paul Loy wrote: > We embed cassandra in our app. When we first load a cluster, we specify one > node in the cluster as the seed node. This node installs the schema using > StorageService.instance.loadKeyspacesFromYAML(). This call has disappeared > in 0.8. > > How

Setting up cluster and nodetool ring in 0.8.0

2011-06-03 Thread David McNelis
I want to make sure I'm not seeing things from a weird perspective. I have two Cassandra instances where one is set to be the seed, with autobootstap disabled and its seed being 127.0.0.1. The second instance has autobootstrap enabled and the seed IP set to the IP of the first node. I start the

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Paul Loy
ugh! On Fri, Jun 3, 2011 at 5:19 PM, Edward Capriolo wrote: > > > On Fri, Jun 3, 2011 at 12:14 PM, Paul Loy wrote: > >> We embed cassandra in our app. When we first load a cluster, we specify >> one node in the cluster as the seed node. This node installs the schema >> using StorageService.insta

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Robert Jackson
Enter the cli with: bin/cassandra-cli --host localhost Then execute the commands to create the keyspaces and column families you need: create keyspace Twitter with placement_strategy = 'org.apache.cassandra.locator.LocalStrategy' AND strategy_options = [{replication_factor:1}]; use Tw

Re: Setting up cluster and nodetool ring in 0.8.0

2011-06-03 Thread Edward Capriolo
On Fri, Jun 3, 2011 at 12:21 PM, David McNelis wrote: > I want to make sure I'm not seeing things from a weird perspective. I have > two Cassandra instances where one is set to be the seed, with autobootstap > disabled and its seed being 127.0.0.1. > > The second instance has autobootstrap enable

Re: Reading quorum

2011-06-03 Thread mcasandra
Fredrik Stigbäck wrote: > > Does reading quorum mean only waiting for quorum respones or does it mean > quorum respones with same latest timestamp? > > Regards > /Fredrik > Well it depends on how your CL is for writes. If you write with QUORUM and then read with QUORUM then yes you will get at

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Edward Capriolo
On Fri, Jun 3, 2011 at 12:35 PM, Paul Loy wrote: > ugh! > > On Fri, Jun 3, 2011 at 5:19 PM, Edward Capriolo wrote: > >> >> >> On Fri, Jun 3, 2011 at 12:14 PM, Paul Loy wrote: >> >>> We embed cassandra in our app. When we first load a cluster, we specify >>> one node in the cluster as the seed no

Re: Setting up cluster and nodetool ring in 0.8.0

2011-06-03 Thread David McNelis
Edward, I change my seed node to use its route-able IP address as its own seed instead of 127.0.0.1. I still, however, still see the same results when running nodetool. On Fri, Jun 3, 2011 at 11:37 AM, Edward Capriolo wrote: > > > On Fri, Jun 3, 2011 at 12:21 PM, David McNelis > wrote: > >> I

Re: Setting up cluster and nodetool ring in 0.8.0

2011-06-03 Thread Konstantin Naryshkin
Did you set the token values for you nodes? I remember having similar symptoms when I had a token conflict. - Original Message - From: "David McNelis" To: user@cassandra.apache.org Sent: Friday, June 3, 2011 5:06:10 PM Subject: Re: Setting up cluster and nodetool ring in 0.8.0 Edwa

Re: Setting up cluster and nodetool ring in 0.8.0

2011-06-03 Thread David McNelis
I might not have set the tokens to 'A' and 'B' respectively, and it didn't change the results. Of course, if I'm thinking of the token definitions incorrectly I wouldn't be surprised. On Fri, Jun 3, 2011 at 12:14 PM, Konstantin Naryshkin wrote: > Did you set the token values for you nodes? I rem

Re: Setting up cluster and nodetool ring in 0.8.0

2011-06-03 Thread Jonathan Ellis
On Fri, Jun 3, 2011 at 11:21 AM, David McNelis wrote: > I want to make sure I'm not seeing things from a weird perspective.  I have > two Cassandra instances where one is set to be the seed, with autobootstap > disabled and its seed being 127.0.0.1. > The second instance has autobootstrap enabled

Re: Setting up cluster and nodetool ring in 0.8.0

2011-06-03 Thread David McNelis
Thanks, Jonathan. Both machines do have the exact same seed list. On Fri, Jun 3, 2011 at 1:39 PM, Jonathan Ellis wrote: > On Fri, Jun 3, 2011 at 11:21 AM, David McNelis > wrote: > > I want to make sure I'm not seeing things from a weird perspective. I > have > > two Cassandra instances where

RE: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Jeremiah Jordan
Or at least someone should write a script which will take a YAML config and turn it into a CLI script. From: Edward Capriolo [mailto:edlinuxg...@gmail.com] Sent: Friday, June 03, 2011 12:00 PM To: user@cassandra.apache.org Subject: Re: Loading Keyspace from YAML

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Paul Loy
+1 On Fri, Jun 3, 2011 at 9:44 PM, Jeremiah Jordan < jeremiah.jor...@morningstar.com> wrote: > Or at least someone should write a script which will take a YAML config > and turn it into a CLI script. > > -- > *From:* Edward Capriolo [mailto:edlinuxg...@gmail.com] > *

Re: Reading quorum

2011-06-03 Thread aaron morton
It means waiting for at least Quorum responses including the one data request sent to the "closest" replica. The other replicas are asked to return a digest of the data. The responses are then reconciled and if a difference is detected columns with the highest timestamps will be returned. Hop

CQL - raw bytes values

2011-06-03 Thread Michal Augustýn
Hello, I have read a lot about CQL and I looked into source and it seems that just string, long and uuid can be used as column name/value in CQL commands. Is there any way how to works with "pure" bytes? I.e. "SELECT BYTES(3412) FROM MyColumnFamily". Actually, I wouldn't use CQL without this featu

Re: CQL - raw bytes values

2011-06-03 Thread Jonathan Ellis
You can use any AbstractType, including custom ones. The format depends on AT.fromString; in the case of bytestype (CQL "bytea") this is hex: SELECT 'd54' FROM MyColumnFamily On Fri, Jun 3, 2011 at 5:45 PM, Michal Augustýn wrote: > Hello, > > I have read a lot about CQL and I looked into source

What's the best approach to search in Cassandra

2011-06-03 Thread Mark Kerzner
Hi, I need to store, say, 10M-100M documents, with each document having say 100 fields, like author, creation date, access date, etc., and then I want to ask questions like give me all documents whose author is like abc**, and creation date any time in 2010 and access date in 2010-2011, and so on

Re: What's the best approach to search in Cassandra

2011-06-03 Thread Jake Luciani
Mark, Check out Solandra. http://github.com/tjake/Solandra On Fri, Jun 3, 2011 at 7:56 PM, Mark Kerzner wrote: > Hi, > > I need to store, say, 10M-100M documents, with each document having say 100 > fields, like author, creation date, access date, etc., and then I want to > ask questions like

Problem compiling

2011-06-03 Thread Fabio Souto
Hi, I'm upgrading to 0.8 and I need a cluster with pig support, so I downloaded cassandra 0.8-src and when I try to compile I have the following error: [root@hostname cassandra]# ant Buildfile: /usr/cassandra/build.xml maven-ant-tasks-localrepo: maven-ant-tasks-download: maven-ant-tasks-init:

Re: Problem compiling

2011-06-03 Thread Jonathan Ellis
Possibly you have an old version of ant? On Fri, Jun 3, 2011 at 9:08 PM, Fabio Souto wrote: > Hi, > > I'm upgrading to 0.8 and I need a cluster with pig support, so I downloaded > cassandra 0.8-src and when I try to compile I have the following error: > > [root@hostname cassandra]# ant > Buildfi

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Colin Taylor
Its ugly for integration testing ... Socket socket = new Socket("127.0.0.1", 9170); final OutputStream cli = socket.getOutputStream(); log.info("loading schema via cli"); new PrintWriter(cli).print(new String(readFully(new FileInputStream("cassandra-schema"; cli

Re: Problem compiling

2011-06-03 Thread Fabio Souto
Seems like it's not the problem: [root@nosql-dev cassandra]# ant -version Apache Ant(TM) version 1.8.2 compiled on December 20 2010 On 04/06/2011, at 04:17, Jonathan Ellis wrote: > Possibly you have an old version of ant? > > On Fri, Jun 3, 2011 at 9:08 PM, Fabio Souto wrote: >> Hi, >> >> I'm