Re: Running Cassandra with no open TCP ports

2013-05-28 Thread Oleg Dulin

Mark:

This begs a question -- why are you using Cassandra for this ? There 
are simpler noSQL stores than Cassandra that are better for embedding.


Oleg

On 2013-05-28 02:24:48 +, Mark Mccraw said:


Hi All,

I'm using Cassandra as an embedded datastore for a small service that 
doesn't need (or want) to act as a database service in any way.  
Moreover, we may want to start up multiple instances of the 
application, and right now whenever that happens, we get port conflicts 
on 7000 because Cassandra is listening for connections.  I couldn't 
find an obvious way to disable listening on any port.  Is there an easy 
way?


Thanks!
Mark



--
Regards,
Oleg Dulin
http://www.olegdulin.com




Re: Running Cassandra with no open TCP ports

2013-05-28 Thread Edward Capriolo
While not exactly optimized for embedded systems there is no reason it
could not be done. Today's super computer is tomorrows embedded watch
processor.


On Tue, May 28, 2013 at 9:11 AM, Oleg Dulin oleg.du...@gmail.com wrote:

 Mark:

 This begs a question -- why are you using Cassandra for this ? There are
 simpler noSQL stores than Cassandra that are better for embedding.

 Oleg

 On 2013-05-28 02:24:48 +, Mark Mccraw said:

  Hi All,

 I'm using Cassandra as an embedded datastore for a small service that
 doesn't need (or want) to act as a database service in any way.  Moreover,
 we may want to start up multiple instances of the application, and right
 now whenever that happens, we get port conflicts on 7000 because Cassandra
 is listening for connections.  I couldn't find an obvious way to disable
 listening on any port.  Is there an easy way?

 Thanks!
 Mark



 --
 Regards,
 Oleg Dulin
 http://www.olegdulin.com





Re: Running Cassandra with no open TCP ports

2013-05-28 Thread Mark Mccraw
Oleg:  The simple answer for why I'm using Cassandra thusly is laziness/fear of 
uncertainty.  I'm using Cassandra indirectly as the back end data store for 
Titan(http://thinkaurelius.github.io/titan/), which is a graph interface.  
Titan does let you swap out the data store, and it gives you several canned 
choices, one of which is Cassandra.  BerkeleyDB might be a better choice for 
this project (and would address this issue), but it has licensing issues, so 
it's out, thus leaving me with using Cassandra or figuring out how to make 
Titan play with something like Derby.  That's a project I just don't have time 
for or interest in.  Apache HBase is another alternative, but that really seems 
like shooting a fly with an elephant gun...

Edward, I completely agree that it should be doable.  Is this something that 
you would advise a simple user to tackle (i.e. does it make any sense at all 
for me to pull down the Cassandra codebase and try to figure out where the 
relevant code lives and what to change), or is it something the maintainers are 
likely to be willing to slip in as a simple feature?  If the latter, do I just 
file a feature request somewhere?

Thanks!
Mark McCraw
mark.mcc...@sas.commailto:mark.mcc...@sas.com



On May 28, 2013, at 9:51 AM, Edward Capriolo wrote:

While not exactly optimized for embedded systems there is no reason it could 
not be done. Today's super computer is tomorrows embedded watch processor.


On Tue, May 28, 2013 at 9:11 AM, Oleg Dulin 
oleg.du...@gmail.commailto:oleg.du...@gmail.com wrote:
Mark:

This begs a question -- why are you using Cassandra for this ? There are 
simpler noSQL stores than Cassandra that are better for embedding.

Oleg

On 2013-05-28 02:24:48 +, Mark Mccraw said:

Hi All,

I'm using Cassandra as an embedded datastore for a small service that doesn't 
need (or want) to act as a database service in any way.  Moreover, we may want 
to start up multiple instances of the application, and right now whenever that 
happens, we get port conflicts on 7000 because Cassandra is listening for 
connections.  I couldn't find an obvious way to disable listening on any port.  
Is there an easy way?

Thanks!
Mark


--
Regards,
Oleg Dulin
http://www.olegdulin.comhttp://www.olegdulin.com/






Re: Running Cassandra with no open TCP ports

2013-05-28 Thread Sam Overton
You can configure cassandra to use an ephemeral port for the storage
endpoint by setting the following in cassandra.yaml:
storage_port: 0

or by setting the system property cassandra.storage_port=0

Similarly for the RPC (thrift) endpoint, using rpc_port in cassandra.yaml
or the system property cassandra.rpc_port

Regards,

Sam


On 28 May 2013 03:24, Mark Mccraw mark.mcc...@sas.com wrote:

  Hi All,

  I'm using Cassandra as an embedded datastore for a small service that
 doesn't need (or want) to act as a database service in any way.  Moreover,
 we may want to start up multiple instances of the application, and right
 now whenever that happens, we get port conflicts on 7000 because Cassandra
 is listening for connections.  I couldn't find an obvious way to disable
 listening on any port.  Is there an easy way?

  Thanks!
  Mark






-- 
Sam Overton
Acunu | http://www.acunu.com | @acunu


Running Cassandra with no open TCP ports

2013-05-27 Thread Mark Mccraw
Hi All,

I'm using Cassandra as an embedded datastore for a small service that doesn't 
need (or want) to act as a database service in any way.  Moreover, we may want 
to start up multiple instances of the application, and right now whenever that 
happens, we get port conflicts on 7000 because Cassandra is listening for 
connections.  I couldn't find an obvious way to disable listening on any port.  
Is there an easy way?

Thanks!
Mark