Re: [VOTE] Release 0.6.4
+1 As an FYI, when i first tried to build the src it happened my environemnt had an IBM JDK which gives a compile error in src\java\org\apache\cassandra\service\GCInspector.java which is using some classes from the package com.sun.management ...ant On Tue, Jul 27, 2010 at 11:18 PM, Eric Evans wrote: > > As discussed last week, here is the proposed 0.6.4 release. There's > been a fair number of changes[1] since 0.6.3, so be sure to review > carefully and raise any issues you find here. > > SVN Tag: https://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.6.4 > 0.6.4 artifacts: http://people.apache.org/~eevans > > The vote will be open for 72 hours. > > Thanks! > > [1]: > https://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.6.4/CHANGES.txt > > -- > Eric Evans > eev...@rackspace.com > >
Re: [VOTE] Release 0.6.4
GCInspector isn't required at runtime (https://issues.apache.org/jira/browse/CASSANDRA-1061) -- any suggestions how to make it happier at build time too? On Thu, Jul 29, 2010 at 5:29 AM, ant elder wrote: > +1 > > As an FYI, when i first tried to build the src it happened my > environemnt had an IBM JDK which gives a compile error in > src\java\org\apache\cassandra\service\GCInspector.java which is using > some classes from the package com.sun.management > > ...ant > > On Tue, Jul 27, 2010 at 11:18 PM, Eric Evans wrote: >> >> As discussed last week, here is the proposed 0.6.4 release. There's >> been a fair number of changes[1] since 0.6.3, so be sure to review >> carefully and raise any issues you find here. >> >> SVN Tag: https://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.6.4 >> 0.6.4 artifacts: http://people.apache.org/~eevans >> >> The vote will be open for 72 hours. >> >> Thanks! >> >> [1]: >> https://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.6.4/CHANGES.txt >> >> -- >> Eric Evans >> eev...@rackspace.com >> >> > -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com
Re: [VOTE] Release 0.6.4
On Thu, Jul 29, 2010 at 07:53, Jonathan Ellis wrote: > GCInspector isn't required at runtime > (https://issues.apache.org/jira/browse/CASSANDRA-1061) -- any > suggestions how to make it happier at build time too? A healthy dose of reflection! I've attached a patch (based on trunk) to #1061 that should allow compilation and execution from non-sun JDKs. Gary > > On Thu, Jul 29, 2010 at 5:29 AM, ant elder wrote: >> +1 >> >> As an FYI, when i first tried to build the src it happened my >> environemnt had an IBM JDK which gives a compile error in >> src\java\org\apache\cassandra\service\GCInspector.java which is using >> some classes from the package com.sun.management >> >> ...ant >>
Re: [VOTE] Release 0.6.4
+1 On Tue, Jul 27, 2010 at 17:18, Eric Evans wrote: > > As discussed last week, here is the proposed 0.6.4 release. There's > been a fair number of changes[1] since 0.6.3, so be sure to review > carefully and raise any issues you find here. > > SVN Tag: https://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.6.4 > 0.6.4 artifacts: http://people.apache.org/~eevans > > The vote will be open for 72 hours. > > Thanks! > > [1]: > https://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.6.4/CHANGES.txt > > -- > Eric Evans > eev...@rackspace.com > >
Creating two instances in code
Hello, I'd like to make some changes to cassandra so that when starting up a node in a cluster, another node starts in another cluster. That requires that the two nodes have different configurations, but DatabaseDescriptor (where I think all the config reading is done) seems to load everything statically when the class is loaded. The configuration path seems to reside in System.getProperties(). Can you suggest a way for me to build a second node with a different configuration path in the same code? Unfortunately, I cannot simply launch two different cassandra instances on the same computer, as I want the second node to have access to information from the first node, such as node load for the first cluster and such (plus even running two separate cassandra instances on the same node seems to require workarounds and hacks). Alexander Altanis
Re: Creating two instances in code
The resource file (cassandra.yaml) is statically defined that is brought in from the classpath. To do what you desire will require changing the code. You could modify DatabaseDescriptor.getStorageConfigPath() to accept some kind of variable to indicate the instance and then load a different file. But that's the least of your problems, as you're probably noticing. The heavy use of singletons will prevent you from isolating some of the services, and the fact that DatabaseDescriptor loads its configuration in a static block into static members will be very problematic. Gary. On Thu, Jul 29, 2010 at 11:36, wrote: > Hello, > > I'd like to make some changes to cassandra so that when starting up a node > in a cluster, another node starts in another cluster. That requires that > the two nodes have different configurations, but DatabaseDescriptor (where > I think all the config reading is done) seems to load everything > statically when the class is loaded. The configuration path seems to > reside in System.getProperties(). Can you suggest a way for me to build a > second node with a different configuration path in the same code? > > Unfortunately, I cannot simply launch two different cassandra instances on > the same computer, as I want the second node to have access to information > from the first node, such as node load for the first cluster and such > (plus even running two separate cassandra instances on the same node seems > to require workarounds and hacks). > > Alexander Altanis >