Re: JDBC CQL Driver unable to locate cassandra.yaml

2011-07-16 Thread Brandon Williams
Try another slash in file:/, ie file://

On Thu, Jul 14, 2011 at 10:55 AM, Derek Tracy trac...@gmail.com wrote:
 I tried putting the cassandra.yaml in the classpath but got the same error.
 Adding -Dcassandra.config=file:/path/to/cassandra.yaml did work.


 -
 Derek Tracy
 trac...@gmail.com
 -



 On Wed, Jul 13, 2011 at 6:22 PM, Jonathan Ellis jbel...@gmail.com wrote:

 The current version of the driver does require having the server's
 cassandra.yaml on the classpath.  This is a bug.

 On Wed, Jul 13, 2011 at 3:13 PM, Derek Tracy trac...@gmail.com wrote:
  I am trying to integrate the Cassandra JDBC CQL driver with my companies
  ETL
  product.
  We have an interface that performs database queries using there
  respective
  JDBC drivers.
  When I try to use the Cassandra CQL JDBC driver I keep getting a
  stacktrace:
 
  Unable to locate cassandra.yaml
 
  I am using Cassandra 0.8.1.  Is there a guide on how to utilize/setup
  the
  JDBC driver?
 
 
 
  Derek Tracy
  trac...@gmail.com
  -
 
 



 --
 Jonathan Ellis
 Project Chair, Apache Cassandra
 co-founder of DataStax, the source for professional Cassandra support
 http://www.datastax.com




Re: Commit log is not emptied after nodetool drain

2011-07-16 Thread Jonathan Ellis
You can create a ticket, but (1) the community has pretty much moved
on from maintaining 0.6 and (2) this looks like the kind of
non-critical problem that isn't worth jeopardizing stability to
attempt a fix for.

2011/7/15 Zhu Han schumi@gmail.com:
 2011/7/15 Zhu Han schumi@gmail.com

 2011/7/15 Jonathan Ellis jbel...@gmail.com

 If you have non-empty segments post-drain that is a bug.  Is it
 reproducible?

 I think it is always reproducible on 0.6.x branch. Here is a simple
 experiment:

 Should I raise an issue ticket on it?


 1) bin/nodetool -h localhost

 2) During flush the memtables,  we can observe the name of the old commit
 log from log:

  INFO [main] 2011-07-15 11:57:46,742 ColumnFamilyStore.java (line 478)
 Data has reached its threshold; switching in a fresh Memtable at
 CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1310702265959.log',
 position=125) 

 3) Before the node is drained, new commitlog is created:

  INFO [COMMIT-LOG-WRITER] 2011-07-15 11:58:11,383 CommitLogSegment.java
 (line 50) Creating new commitlog segment
 /var/lib/cassandra/commitlog/CommitLog-1310702291383.log
  INFO [RMI TCP Connection(2)-192.168.1.101] 2011-07-15 11:58:11,413
 StorageService.java (line 391) Node is drained

 4) After the node is drained and killed, there are still two commit log
 under the directory

 $ ls -lh /var/lib/cassandra/commitlog/
 total 128K
 -rw-r--r-- 1 root root 439 2011-07-15 11:57 CommitLog-1310702265959.log
 -rw-r--r-- 1 root root 125 2011-07-15 11:58 CommitLog-1310702291383.log




 2011/7/14 Zhu Han schumi@gmail.com:
  Jonathan,
 
  But all the old non-empty log segments are kept on the disk. And
  cassandra
  takes some time to apply the operations from these closed log segments
  after
  restart of the process.
 
  Is it expected?
 
  best regards,
  韩竹(Zhu Han)
 
  坚果铺子, 最简单易用的云存储
  同步文件, 分享照片, 文档备份!
 
 
 
  2011/7/15 Jonathan Ellis jbel...@gmail.com
 
  It's expected to have a new, empty segment after drain completes.
 
  2011/7/14 Zhu Han schumi@gmail.com:
   The deployed version is based on 0.6.13.
  
   After nodetool drain is invoked on one of the nodes, the commit
   log is
   not
   emptied. Is this the expected behavior? If so, how can I rename a
   column
   family on 0.6.x branch?
  
   Here is the log output:
   
   INFO [COMMIT-LOG-WRITER] 2011-07-15 00:39:49,541
   CommitLogSegment.java
   (line
   50) Creating new commitlog segment
   /var/lib/cassandra/commitlog/CommitLog-1310661589541.log
INFO [RMI TCP Connection(8)-202.120.2.16] 2011-07-15 00:39:49,544
   StorageService.java (line 391) Node is drained
   
  
   I saw an issue here, but it was reported against 0.8.x branch.
   https://issues.apache.org/jira/browse/CASSANDRA-2874
  
   best regards,
   韩竹(Zhu Han)
  
   坚果铺子, 最简单易用的云存储
   同步文件, 分享照片, 文档备份!
  
  
 
 
 
  --
  Jonathan Ellis
  Project Chair, Apache Cassandra
  co-founder of DataStax, the source for professional Cassandra support
  http://www.datastax.com
 
 



 --
 Jonathan Ellis
 Project Chair, Apache Cassandra
 co-founder of DataStax, the source for professional Cassandra support
 http://www.datastax.com






-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com


[RELEASE] Apache Cassandra 0.7.7 released

2011-07-16 Thread Sylvain Lebresne
The Cassandra team is pleased to announce the release of Apache Cassandra
version 0.7.7.

Cassandra is a highly scalable second-generation distributed database,
bringing together Dynamo's fully distributed design and Bigtable's
ColumnFamily-based data model. You can read more here:

 http://cassandra.apache.org/

Downloads of source and binary distributions are listed in our download
section:

 http://cassandra.apache.org/download/

This version is a bug fix release[1,3] and upgrade is highly encouraged.
Please always pay attention to the release notes[2] before upgrading,

If you were to encounter any problem, please let us know[4].

Have fun!


[1]: http://goo.gl/U4SjN (CHANGES.txt)
[2]: http://goo.gl/2ZKyL (NEWS.txt)
[3]: http://goo.gl/hmwkG (JIRA Release Notes)
[4]: https://issues.apache.org/jira/browse/CASSANDRA