unsubscribe

2013-02-19 Thread Anurag Gujral
Unsubscribe me please. Thanks A

datacenter ShardStrategy

2011-05-08 Thread Anurag Gujral
Hi All, I want to use datacenter ShardStrategy in my cassandra setup .Can someone please let me know what steps / configuration changes I need to make. Thanks Anurag

Re: datacenter ShardStrategy

2011-05-09 Thread Anurag Gujral
out NetworkTopologyStrategy instead. > > Intro: > http://www.datastax.com/dev/blog/deploying-cassandra-across-multiple-data-centers > > On Sun, May 8, 2011 at 8:09 PM, Anurag Gujral > wrote: > > Hi All, > >I want to use datacenter ShardStrategy in my cassandra setup > &g

cassandra not reading keyspaces defined in cassandra.yaml

2011-05-09 Thread Anurag Gujral
Hi All, I have following in my cassandra.yaml keyspaces: - column_families: - column_metadata: [] column_type: Standard compare_with: BytesType gc_grace_seconds: 86400 key_cache_save_period_in_seconds: 14400 keys_cached: 0.0 max_compaction_threshold: 32 memt

installing cassandra on ec2 boxes

2011-05-10 Thread Anurag Gujral
Hi All, I am trying to install cassandra on ec2 boxes . I am using domain names to specify the listen_address and seeds. I am getting following error from cassandra when I try to create keyspace. Warning: unreachable nodes IP(address of the cassandra instance).. schemas agree across the

Re: installing cassandra on ec2 boxes

2011-05-10 Thread Anurag Gujral
> As you're getting started, you may also find this blog that my team put > together helpful: > > https://sites.google.com/a/techlabs.accenture.com/cassandra/ > > > - Sameer > > > > On Tue, May 10, 2011 at 9:39 AM, Anurag Gujral wrote: > >> Hi All, >

Re: How to load schema non-programmatically? loadSchemaFromYAML doesn't work

2011-05-10 Thread Anurag Gujral
Use jconsole give your hostname:port (hostname,port on which cassandra is running) then from the MBean select storage service . On the storage service MBean execute operation loadSchemaFromXML(); You may have to change the hostname in the your cassandra jmx settings thanks A On Tue, May 10, 2011

network topology issue

2011-05-11 Thread Anurag Gujral
Hi All, I am testing network topology strategy in cassandra I am using two nodes , one node each in different data center. Since the nodes are in different dc I assigned token 0 to both the nodes. I added both the nodes as seeds in the cassandra.yaml and I am using properyfilesnitch

Re: network topology issue

2011-05-11 Thread Anurag Gujral
show you > the correct syntax. > > > More info on tokens: > > http://journal.paul.querna.org/articles/2010/09/24/cassandra-token-selection/ > <http://journal.paul.querna.org/articles/2010/09/24/cassandra-token-selection/> > http://wiki.apache.org/cassandra/O

Re: network topology issue

2011-05-12 Thread Anurag Gujral
Thanks everyone for your responses. On Thu, May 12, 2011 at 1:18 AM, Sylvain Lebresne wrote: > On Thu, May 12, 2011 at 1:58 AM, Anurag Gujral > wrote: > > Hi All, > > I am testing network topology strategy in cassandra I am > using > > two nodes , one

Hinted Handoff

2011-05-12 Thread Anurag Gujral
Hi All, I have two questions: a) Is there a way to turn on and off hinted handoff per keyspace rather than for multiple keyspaces. b)It looks like cassandra stores hinted handoff data in one row.Is it true? .Does having one row for hinted handoff implies if nodes are down for longer per

nodetool move in cassandra

2011-05-12 Thread Anurag Gujral
Hi All, I want to change the token for my cassandra node from T to T+1. It appears that cassandra in this case brings all the data from the other nodes(which basically mean i can only do move token if RF is > 1 for my cluster) . Does cassandra node whose token I am changing looks at the

assertion error in cassandra when doing nodetool move

2011-05-12 Thread Anurag Gujral
Hi All, I run following command on one of my nodes to move the token from 0 to 2. /usr/cassandra/cassandra/bin/nodetool -h 10.170.195.204 -p 8080 move 2. I dont understand why is this happening? I am getting the following assertion error: Exception in thread "main" java.lang.Assertion

Re: assertion error in cassandra when doing nodetool move

2011-05-13 Thread Anurag Gujral
Aaron Morton > Freelance Cassandra Developer > @aaronmorton > http://www.thelastpickle.com > > On 13 May 2011, at 13:45, Anurag Gujral wrote: > > > Hi All, > > I run following command on one of my nodes to move the token > from 0 to 2. > > /usr/c

Converting separate clusters in mutliple dc to one cluster across multiple dcs

2011-05-13 Thread Anurag Gujral
Hi All, I have 3 separate cassandra clusters running in multiple data centers which I want to convert to one cassandra cluster across multiple data centers Does anyone tried this? If so what are the steps: I think I need to do the following: a)Change cluster name: What is the procedu

Re: assertion error in cassandra when doing nodetool move

2011-05-13 Thread Anurag Gujral
I am using network Topology strategy for one of my keyspaces. Thanks Anurag On Thu, May 12, 2011 at 6:45 PM, Anurag Gujral wrote: > Hi All, > I run following command on one of my nodes to move the token > from 0 to 2. > /usr/cassandra/cassandra/bin/nodetool -h 10.170.195

problems using property snitch file

2011-05-13 Thread Anurag Gujral
Hi All, I have built a cassandra cluster which is using property snitch file to specify my network topology to cassandra.The keyspace I have use network topology strategy. When I tried to add new node to this cluster,I get the following error: RROR [main] 2011-05-13 23:45:44,152 Abstract

Re: assertion error in cassandra when doing nodetool move

2011-05-15 Thread Anurag Gujral
I am using version 0.7.3 Thanks Anurag On Fri, May 13, 2011 at 11:15 AM, Anurag Gujral wrote: > I am using network Topology strategy for one of my keyspaces. > Thanks > Anurag > > > On Thu, May 12, 2011 at 6:45 PM, Anurag Gujral wrote: > >> Hi All, >>

Re: problems using property snitch file

2011-05-15 Thread Anurag Gujral
e Cassandra Developer > @aaronmorton > http://www.thelastpickle.com > > On 14 May 2011, at 11:48, Anurag Gujral wrote: > > > Hi All, > > I have built a cassandra cluster which is using property snitch > file to specify my network topology to cassandra.

Re: Converting separate clusters in mutliple dc to one cluster across multiple dcs

2011-05-15 Thread Anurag Gujral
r if you need. > > Hope that helps. > > - > Aaron Morton > Freelance Cassandra Developer > @aaronmorton > http://www.thelastpickle.com > > On 14 May 2011, at 04:55, Anurag Gujral wrote: > > Hi All, > I have 3 separate cassandra clusters r

Re: problems using property snitch file

2011-05-16 Thread Anurag Gujral
? > > Cheers > > - > Aaron Morton > Freelance Cassandra Developer > @aaronmorton > http://www.thelastpickle.com > > On 16 May 2011, at 12:28, Anurag Gujral wrote: > > IPAddress1=DC1:RAC1 > IPAddress1=DC2:RAC1 > IPAddress1=DC2:RAC1 > I

upgrading from cassandra 0.7.3 to 0.8.0

2011-06-15 Thread Anurag Gujral
Hi All, I had a cassandra node which was running on cassandra 0.7.3. Without changing the data directories I installed cassandra 0.8.0 but when I query data I get timeouts. Can somehow please guide me how to go about upgrade from cassandra 0.7.3 to cassandra 0.8.0. Thanks Anurag

downgrading from cassandra 0.8 to 0.7.3

2011-06-15 Thread Anurag Gujral
Hi All, I moved to cassandra 0.8.0 from cassandra-0.7.3 when I try to move back I get the following error: java.lang.RuntimeException: Can't open sstables from the future! Current version f, found file: /data/cassandra/data/system/Schema-g-9. Please suggest. Thanks Anurag

urgent how to specify multiple hosts in cassandra

2011-06-17 Thread Anurag Gujral
Hi All I specified multiple hosts in seeds field when using cassandra-0.8 like this seeds: "192.168.1.115","192.168.1.110","192.168.1.113" But I am getting error that hile parsing a block mapping in "", line 106, column 13: - seeds: "192.168.1.115","192.168. ...

Out of memory error in cassandra

2011-07-11 Thread Anurag Gujral
Hi All, I am getting following error from cassandra: ERROR [ReadStage:23] 2011-07-10 17:19:18,300 DebuggableThreadPoolExecutor.java (line 103) Error in ThreadPoolExecutor java.lang.OutOfMemoryError: Java heap space at org.apache.cassandra.utils.BloomFilterSerializer.deserialize(B

Re: Out of memory error in cassandra

2011-07-12 Thread Anurag Gujral
es-are-dying-with-oom-errors > ? > > On Mon, Jul 11, 2011 at 1:55 PM, Anurag Gujral > wrote: > > Hi All, > >I am getting following error from cassandra: > > ERROR [ReadStage:23] 2011-07-10 17:19:18,300 > > DebuggableThreadPoolExecutor.j

Cassandra c++ client

2011-03-16 Thread Anurag Gujral
Hi All, Anyone knows about stable C++ client for cassandra? Thanks Anurag

getting exception when cassandra 0.7.3 is starting

2011-03-16 Thread Anurag Gujral
I am getting exception when starting cassandra 0.7.3 ERROR 01:10:48,321 Exception encountered during startup. java.lang.NegativeArraySizeException at org.apache.cassandra.db.ColumnFamilyStore.readSavedCache(ColumnFamilyStore.java:274) at org.apache.cassandra.db.ColumnFamilyStore.(ColumnFam

Re: getting exception when cassandra 0.7.3 is starting

2011-03-16 Thread Anurag Gujral
d, Mar 16, 2011 at 11:15 PM, Anurag Gujral > wrote: > >> I am getting exception when starting cassandra 0.7.3 >> >> ERROR 01:10:48,321 Exception encountered during startup. >> java.lang.NegativeArraySizeException >> at >> org.apache.cassandra.db.ColumnF

InvalidRequestException: Mutation must have one ColumnOrSuperColumn or one Deletion

2011-03-17 Thread Anurag Gujral
Hi All, I am using function batch_mutate of cassandra 0.7 and I am getting the error InvalidRequestException: Mutation must have one ColumnOrSuperColumn or one Deletion. I have my own C++ cassandra client using thrift 0.0.5 api. Any Suggestions. Sample Code map > cfmap; vector

Re: InvalidRequestException: Mutation must have one ColumnOrSuperColumn or one Deletion

2011-03-17 Thread Anurag Gujral
Thanks for the reply. I added mutation.__isset.column_or_supercolumn=true; Now I am getting TApplicationException: Internal error processing batch_mutate Any suggestions? Thanks Anurag On Thu, Mar 17, 2011 at 8:13 AM, Anurag Gujral wrote: > Hi All, > I am using function batch_

Re: InvalidRequestException: Mutation must have one ColumnOrSuperColumn or one Deletion

2011-03-17 Thread Anurag Gujral
wrote: > Internal error means "there is a stacktrace in the server system.log" > and in this case probably also means "you sent some kind of invalid > request that our validation didn't catch." > > On Thu, Mar 17, 2011 at 11:29 AM, Anurag Gujral &g

script to modify cassandra.yaml file

2011-03-20 Thread Anurag Gujral
Hi All, I want to modify the values in the cassandra.yaml which comes with the cassandra-0.7 package based on values of hostnames, colo etc. Does someone knows of some script which I can use which reads in default cassandra.yaml and write outs new cassandra.yaml with values based on numbe

error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
I am using cassandra-0.7.3 and thrift-0.0.5,I wrote a java client using thrift 0.0.5 when I try to connect to local cassandra server I get the following error ERROR com.bluekai.cassandra.validation.ValidationThread - Failed to connect to 127.0.0.1. org.apache.thrift.transport.TTransportException:

error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
-- From: Anurag Gujral Date: Thu, Mar 24, 2011 at 1:26 AM Subject: error connecting to cassandra 0.7.3 To: user@cassandra.apache.org I am using cassandra-0.7.3 and thrift-0.0.5,I wrote a java client using thrift 0.0.5 when I try to connect to local cassandra server I get the following error ERROR

Re: error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
ion for your thrift interface? Cassandra 0.7 > uses Framed transport as default > > > 2011/3/24 Anurag Gujral > >> >> I am using the following code to create my client. >> >> tr = new TSocket(url, port); >> TProtocol proto = new TBinaryProto

Re: error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
$Client.send_set_keyspace(Cassandra.java:414) at org.apache.cassandra.thrift.Cassandra$Client.set_keyspace(Cassandra.java:403) Please suggest why is this an error Thanks Anurag On Thu, Mar 24, 2011 at 7:15 AM, Anurag Gujral wrote: > Hi Ruslan > where is this framed transport defined. > I did TProto

Re: error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
Hi All, I was able to resolve by making socket open. Thanks Anurag On Thu, Mar 24, 2011 at 7:48 AM, Anurag Gujral wrote: > Hi All, > I am using the following code as per suggestion by Ruslan >tr = new TSocket(url, port,timeout); >TTransport tr

cassandra client sample code for 0.7.3

2011-03-24 Thread Anurag Gujral
I am in need of sample code(basically cassandra client) in java using batch_mutate If someone has please reply back Thanks Anurag

Re: cassandra client sample code for 0.7.3

2011-03-25 Thread Anurag Gujral
ateColumn("name2", "val2", timeStamp)); > info.setColumns(cols); > > > Map> mutations = new HashMap List>(); > List mutation = new ArrayList(); > mutation.add(getMutation(info)); > > mutations.put("SuperCF", mutation); > Map>> mutationMap = new > HashMap>>(); > mutationMap.put(ByteBuffer.wrap(getBytes("row-key")), mutations); > client.batch_mutate(mutationMap, CL); > > Thanks, > Naren > > > On Thu, Mar 24, 2011 at 10:01 PM, Anurag Gujral > wrote: > >> I am in need of sample code(basically cassandra client) in java using >> batch_mutate >> If someone has please reply back >> Thanks >> Anurag >> > >

weird cassandra issue

2011-03-25 Thread Anurag Gujral
Hi All, I am using cassandra 0.7.3 and thrift 0.0.5 when I am trying to write to cassandra using batch_mutate I get the following error: InvalidRequestException(why:Key may not be empty) at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:16007)

question on saved_cache_directory

2011-03-26 Thread Anurag Gujral
Hi All, I have sdd and normal disk .I am using sdd for data directory should i also use sdd for saved_cache directory. Thanks Anurag

fabric script for cassandra

2011-03-27 Thread Anurag Gujral
Hi All, Does anyone knows where to get /have a fabric script for deploying cassandra on multiple machines. Thanks Anurag

design cassandra issue client when moving from version 0.6.* to 0.7.3

2011-03-28 Thread Anurag Gujral
Hi All, I am currently porting a cassandra c++ client from 0.6.* to 0.7.3. The c++ client I had in 0.6.* used to function conn->client->send_multiget_slice which used to take as parameter cseqid. The sign of the function in 0.6.* was void CassandraClient::send_multiget_slice(const std::st

Fatal error from a cassandra node

2011-03-30 Thread Anurag Gujral
Hi All, I have 6 node cassandra cluster all are setup with same configurationI am getting fatal exceptions in one of the nodes ERROR [Thread-604] 2011-03-29 20:19:13,218 AbstractCassandraDaemon.java (line 114) Fatal exception in thread Thread[Thread-604,5,main] java.lang.OutOfMemoryE

Re: Fatal error from a cassandra node

2011-03-30 Thread Anurag Gujral
I am using 16G of heap space how much more should i increase. Please suggest Thanks Anurag On Wed, Mar 30, 2011 at 11:43 AM, Narendra Sharma wrote: > http://wiki.apache.org/cassandra/MemtableThresholds#JVM_Heap_Size > > > > On Wed, Mar 30, 2011 at 11:41 AM, Peter Schuller < > peter.schul...@infi

Cassandra error Insufficient space to compact

2011-03-30 Thread Anurag Gujral
Hi All, I am getting following message from cassandra WARN [CompactionExecutor:1] 2011-03-30 18:46:33,272 CompactionManager.java (line 406) insufficient space to compact all requested files SSTableReader( I am using 16G of java heap space ,please let me know should I consider this as a

Re: Cassandra error Insufficient space to compact

2011-03-30 Thread Anurag Gujral
Sharma wrote : The space referred in the log message is disk space and not heap. So check > if you are running low on disk space. > > Thanks, > Naren > > > On Wed, Mar 30, 2011 at 4:55 PM, Anurag Gujral wrote: > >> Hi All, >> I am getting followin

Re: Fatal error from a cassandra node

2011-03-30 Thread Anurag Gujral
aren > > > On Wed, Mar 30, 2011 at 4:45 PM, Anurag Gujral wrote: > >> >> I am using 16G of heap space how much more should i increase. >> Please suggest >> >> Thanks >> Anurag >> >> On Wed, Mar 30, 2011 at 11:43 AM, Narendra Sharma < &

add new data directory to cassandra

2011-03-30 Thread Anurag Gujral
Hi All, I had a single directory designated as data file directory in cassandra ,but it ran out of space .I am adding a new data directory in addition to the one I have .What should I do so that cassandra balance the space on both of them. Thanks Anurag

urgent

2011-04-01 Thread Anurag Gujral
Hi All, I have setup a cassandra cluster with three data directories but cassandra is using only one of them and that disk is out of space and .Why is cassandra not using all the three data directories. Plz Suggest. Thanks Anurag

Understanding cfhistogram output

2011-04-01 Thread Anurag Gujral
Hi All, I ran nodetool with cfhistogram I dont fully understand the output.Can someone please shower some light on it. Thanks Anurag

compaction behaviour

2011-04-02 Thread Anurag Gujral
Hi All, I have loaded data into cassandra using batch processing the response times for reads are in the range of 0.8 ms but I am using SSDs. so I expect the read times to be even faster. Every time I run compaction the latency numbers reduce to 0.3 to 0.4ms , is there a way I can run

Re: urgent

2011-04-03 Thread Anurag Gujral
on > > On 2 Apr 2011, at 01:56, Anurag Gujral wrote: > > > Hi All, > > I have setup a cassandra cluster with three data directories > but cassandra is using only one of them and that disk is out of space > > and .Why is cassandra not using all the three

change row cache size in cassandra

2011-04-03 Thread Anurag Gujral
Hi All, How can I change the row cache size in cassandra. I could not find any documentation on this. Thanks Anurag

Re: compaction behaviour

2011-04-03 Thread Anurag Gujral
; Zhu Han > > > > On Sun, Apr 3, 2011 at 9:21 AM, Anurag Gujral wrote: > >> Hi All, >>I have loaded data into cassandra using batch processing the >> response times for reads are in the range of 0.8 ms but I am using SSDs. so >> I expect the read times

Re: change row cache size in cassandra

2011-04-03 Thread Anurag Gujral
Hi All, I looked at the nodetool there is an option to change cache sizes . Thanks Anurag On Sun, Apr 3, 2011 at 12:25 PM, Anurag Gujral wrote: > Hi All, > How can I change the row cache size in cassandra. I could not find > any documentation on this. > Thanks > Anurag >

running compaction from a machine outside the cluster

2011-04-05 Thread Anurag Gujral
Hi All, Is there a way I can run compaction on the cassandra cluster from a machine where cassandra is not installed.I have a cluster of 6 machines but I want to run compaction on them from a different machine which does not have cassandra installed. Thanks Anurag

old JMX code is not working with new cassandra version

2011-04-05 Thread Anurag Gujral
Hi All, I had written code for cassandra 0.6.3 using JMX to call compaction,when I try to use that code to connect to 0.7.3 I get the following error Exception in thread "main" java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectExcep

weird error when connecting to cassandra mbean proxy

2011-04-07 Thread Anurag Gujral
Hi All, I have written a code for connecting to mbean server runnning on cassandra node. I get the following error: Exception in thread "main" java.lang.reflect.UndeclaredThrowableException at $Proxy1.getReadOperations(Unknown Source) at com.smeet.cassandra.CassandraJmxHttpServerMy.(Cassan

erros which starting cassandra

2011-04-12 Thread Anurag Gujral
Hi All, I am getting the following errors when I am trying to start cassandra . Error occurred during initialization of VM Could not reserve enough space for object heap I am using cassandra 0.7.3 uname -a Linux hostname 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 07:32:21 EST 2010 x86_64 x

Re: erros which starting cassandra

2011-04-12 Thread Anurag Gujral
I was able to resolve this by changing the heap size Thanks Anurag On Tue, Apr 12, 2011 at 1:38 PM, Anurag Gujral wrote: > Hi All, > I am getting the following errors when I am trying to start > cassandra . > > Error occurred during initialization of VM > Could not re

raid 0 and ssd

2011-04-13 Thread Anurag Gujral
Hi All, We are using three ssd disks with cassandra 0.7.3 , should we set them as raid0 .What are the advantages and disadvantages of doing this. Please advise. Thanks Anurag

code for read operations cassandra

2011-04-18 Thread Anurag Gujral
Hi All, Can you please point me to the code where cassandra is iterating over all the sstables for a key when doing read operation on a key. Thanks a ton, Regards, Anurag

strange behaviour in cassandra

2011-05-08 Thread Anurag Gujral
Hi All, I stop my cassandra node and restarted it,this start and stop resulted in decrease in the space used by cassandra by 20%. I am not sure what is happening?Can Anyone please shower some light on this behaviour. Thanks Anurag

Re: strange behaviour in cassandra

2011-05-08 Thread Anurag Gujral
Thanks for your response I think the reference you are talking about is http://wiki.apache.org/cassandra/MemtableSSTable Regards, Anurag On Sun, May 8, 2011 at 11:01 AM, Peter Schuller wrote: > > I stop my cassandra node and restarted it,this start and stop > > resulted in decrease in

Using cassandra as key /value store

2010-03-25 Thread Anurag Gujral
Hi All, I am designing an application where I need to store data as key-value pair without the present need to use column/super-column family stuff. Does my use case fits Cassandra. My traffic will be 70-80% read traffic.The latency requirements are 100ms. Thanks Anurag