Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Ying Tang
I'm using cassandra 0.7 . And in storage-conf . # The address to bind the Thrift RPC service to rpc_address: localhost # port for Thrift to listen on rpc_port: 9160 In my client , the code below works successfully. TSocket socket = new TSocket(localhost, 9160); TTransport trans

Re: Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Benjamin Black
Do you mean you are changing the yaml file? Does 'netstat -an | grep 9160' indicate cassandra is bound to ipv4 or ipv6 (tcp vs tcp6 in the netstat output)? b On Thu, Sep 9, 2010 at 1:06 AM, Ying Tang ivytang0...@gmail.com wrote: I'm using cassandra 0.7 . And in storage-conf . # The address

Re: Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Ying Tang
no , i didn't change the yaml file. On Thu, Sep 9, 2010 at 4:10 AM, Benjamin Black b...@b3k.us wrote: Do you mean you are changing the yaml file? Does 'netstat -an | grep 9160' indicate cassandra is bound to ipv4 or ipv6 (tcp vs tcp6 in the netstat output)? b On Thu, Sep 9, 2010 at 1:06

Re: Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Ying Tang
oh.solve it. Change the rpc_address to my localhost's ip ,then in the client code ,the TSocket can connect to the ip. On Thu, Sep 9, 2010 at 4:14 AM, Ying Tang ivytang0...@gmail.com wrote: no , i didn't change the yaml file. On Thu, Sep 9, 2010 at 4:10 AM, Benjamin Black b...@b3k.us wrote:

Re: Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Benjamin Black
when you say localhost's ip do you mean 127.0.0.1 or do you mean an ip on its local interface? On Thu, Sep 9, 2010 at 1:29 AM, Ying Tang ivytang0...@gmail.com wrote: oh.solve it. Change the rpc_address to my localhost's ip ,then in the client code ,the TSocket can connect to the ip. On Thu,

Re: ganglia plugin

2010-09-09 Thread Benjamin Black
Nice! On Wed, Sep 8, 2010 at 6:45 PM, Scott Dworkis s...@mylife.com wrote: in case the community is interested, my gmetric collector: http://github.com/scottnotrobot/gmetric/tree/master/database/cassandra/ note i have only tested with a special csv mode of gmetric... you can bypass this

Re: Few questions regarding cassandra deployment on windows

2010-09-09 Thread Gary Dusbabek
On Tue, Sep 7, 2010 at 17:42, kannan chandrasekaran ckanna...@yahoo.com wrote: Hi All, We are currently considering Cassandra for our application. Platform: * a single-node cluster. * windows '08 * 64-bit jvm For the sake of brevity let, Cassandra service =  a single node cassandra

Re: disk full error while bootstrapping

2010-09-09 Thread Jonathan Ellis
On Thu, Sep 9, 2010 at 12:50 AM, Gurpreet Singh gurpreet.si...@gmail.com wrote: 1. what is the purpose of this anticompacted file created during cleanup? That is all the data that still belongs to the node, post-bootstrap. Since you were just bringing the cluster back up to RF nodes, that's all

Re: ColumnFamilyOutputFormat and mapreduce.output.columnfamilyoutputformat.batch.threshold 0.70beta1

2010-09-09 Thread Jeremy Hanna
When Jonathan said don't build trunk thrift, he meant just thrift - apply the patches against cassandra trunk. You shouldn't need to build the thrift bindings. On Sep 8, 2010, at 10:54 PM, Alex Burkoff wrote: Well, 7.0beta1 rejects those patches. Is there a specific revision I can try

IndexOperator LT/LTE/GT/GTE Implementation

2010-09-09 Thread David Erickson
Hi all, I have been running the nightly of Cassandra and was able to get the secondary indices working for me, and queryable with IndexOperator.EQ. I have an additional index that I need to use IndexOperator.LTE on for LongType, which I tried to use but the equivalent of a NotImplementedException

Re: disk full error while bootstrapping

2010-09-09 Thread Gurpreet Singh
Thanks Jonathan. I guess i need to be patient for JVM GC :-) Two more things i was trying, and wanted to check if it was supported. Now, i have a 2 node cluster (say A and B), and i am trying to bootstrap 2 more nodes. (C and D) The first bootstrap started successfully. I see anticompaction

Re: Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Aaron Morton
I set this to 0.0.0.0 I think the original storage_config.xml had a comment that it would make thrift respond on all interfaces.AaronOn 09 Sep, 2010,at 08:37 PM, Benjamin Black b...@b3k.us wrote:when you say "localhost's ip" do you mean 127.0.0.1 or do you mean an ip on its local interface? On

Re: Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Benjamin Black
correct, 0.0.0.0 is a wildcard. On Thu, Sep 9, 2010 at 1:19 PM, Aaron Morton aa...@thelastpickle.com wrote: I  set this to 0.0.0.0 I think the original storage_config.xml had a comment that it would make thrift respond on all interfaces. Aaron On 09 Sep, 2010,at 08:37 PM, Benjamin Black

Re: IndexOperator LT/LTE/GT/GTE Implementation

2010-09-09 Thread Jonathan Ellis
as the validation error (No indexed columns present in index clause with operator EQ) explains, you need at least one at EQ after which you can add others w/ other operators On Thu, Sep 9, 2010 at 1:08 PM, David Erickson halcyon1...@gmail.com wrote: Hi all, I have been running the nightly of

Re: Cassandra 0.7 logging

2010-09-09 Thread Alaa Zubaidi
Hi Viktor, Thanks, it works now. I made a copy of log4j-server.properties and called it log4j.properties, renamed log4j-server.properties to something else. Also in order to change the location of the log file using log4j.appender.RFile I had to use / instead of \ in the file location. Alaa

Cassandra Pig

2010-09-09 Thread Mark
Does anyone know of any good tutorials for using Pig with Cassandra? I am trying do a basic load: rows = LOAD 'cassandra://Foo/Bar' USING CassandraStorage(); but i keep getting this error. ERROR 1070: Could not resolve CassandraStorage using imports: [, org.apache.pig.builtin.,

Re: IndexOperator LT/LTE/GT/GTE Implementation

2010-09-09 Thread David Erickson
Hi Jonathan, Thanks for the reply. Why is there a limitation of requiring an EQ? In my case I am modeling my CF with one object per row, with columns for object properties. The query I'd like to issue is give me all objects with timestamps earlier than a specified time. In this query there is

Re: IndexOperator LT/LTE/GT/GTE Implementation

2010-09-09 Thread Jonathan Ellis
Short version: It's dictated by indexes being CFs underneath. Your workaround would be substantially less efficient than not using an index at all and just using range scan. On Thu, Sep 9, 2010 at 9:20 PM, David Erickson halcyon1...@gmail.com wrote: Hi Jonathan, Thanks for the reply.  Why is

Re: Cassandra Pig

2010-09-09 Thread Jeremy Hanna
Details of basic linkage are in the contrib/pig section of the Cassandra source in the readme. You should be able to run basic queries with just that. On Sep 9, 2010, at 8:38 PM, Mark static.void@gmail.com wrote: Does anyone know of any good tutorials for using Pig with Cassandra? I am

IOException: Value too large for defined data type (Cassandra 0.6.5)

2010-09-09 Thread Gurpreet Singh
I am using Cassandra 0.6.5, and playing with bootstrapping, decommissioning nodes. The latest one i hit is the exception down below. I got this exception twice on the source machine while streaming, in 2 different scenarios (both involved streaming though) 1. Bootstrapping another machine from the

Re: Few questions regarding cassandra deployment on windows

2010-09-09 Thread kannan chandrasekaran
Thanks for the replies My comments in Bold... Kannan From: Gary Dusbabek gdusba...@gmail.com To: user@cassandra.apache.org Sent: Thu, September 9, 2010 5:43:31 AM Subject: Re: Few questions regarding cassandra deployment on windows On Tue, Sep 7, 2010 at 17:42, kannan chandrasekaran

How to drop a keyspace in 0.6.5?

2010-09-09 Thread kannan chandrasekaran
Hi All, I understand that how to drop the column family from the a node using http://wiki.apache.org/cassandra/FAQ#modify_cf_config . How can I drop an entire Keyspace ? If I drop all the CF's in the Keyspace will the keyspace be automatically dropped ? Thanks Kannan

Re: IOException: Value too large for defined data type (Cassandra 0.6.5)

2010-09-09 Thread Jonathan Ellis
In the past that has meant you need to upgrade to the latest JDK. On Thu, Sep 9, 2010 at 10:17 PM, Gurpreet Singh gurpreet.si...@gmail.com wrote: I am using Cassandra 0.6.5, and playing with bootstrapping, decommissioning nodes. The latest one i hit is the exception down below. I got this