Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AE72EE20 for ; Tue, 28 May 2013 15:22:54 +0000 (UTC) Received: (qmail 16803 invoked by uid 500); 28 May 2013 15:22:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 16783 invoked by uid 500); 28 May 2013 15:22:48 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 16760 invoked by uid 99); 28 May 2013 15:22:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 May 2013 15:22:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of soverton@acunu.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 May 2013 15:22:42 +0000 Received: by mail-ie0-f182.google.com with SMTP id a14so21479272iee.41 for ; Tue, 28 May 2013 08:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acunu.com; s=google; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=yZ+yDHqHlpCVfkjznHRAH+xGcbKAMvaSpddMNDLiLUE=; b=BQRIn/AxVAbCqJFDFl4JSqrWNAzkw8V1mrjtv1PA1zEHsQLYS4sxY0md5/a2s3gQbV IQuC2k0U6oqIXccwdgiTj8ZbVqwLR5i/lRLb8amjMbX4AhA6HLlfL8IgOmqeNMzX66+1 ENmDnZWTNcOuhOhUGGjOLZDJjOzrvdQjQKgh8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=yZ+yDHqHlpCVfkjznHRAH+xGcbKAMvaSpddMNDLiLUE=; b=ExGvMRPASCfN6m4n7KR0z/WdoiiVFzYC+6SYyYBt4MGrb+F14ctPw2/zm7QjtNQOEf VUJXUHF+oUFBTanoKgOzN+O489HxJPSLE6QdlhvyP7ZrJzBBVt+WzmqYESM/+EXRyW8W khHzklWUHPD778IXOHJUKjsaOBZXPgV+UGkyBk1DFFlkaK0poZWKhzbhmso2yko2CkY9 332ffsorF5/gTSPgX3VIljaf2xNDBkrYbTGUeqC3rw5n5dR+vlSd/f1DA45M5Vnij+k6 eVAVsulPlfpJRdSumkGovJVQPpXvTLoMEAo4vdsVW1HzkRaQX5vrIjNx8NUIQZS7LKm/ 5eRw== X-Received: by 10.50.67.108 with SMTP id m12mr6598516igt.66.1369754541193; Tue, 28 May 2013 08:22:21 -0700 (PDT) MIME-Version: 1.0 Reply-To: sam@acunu.com Received: by 10.64.42.163 with HTTP; Tue, 28 May 2013 08:22:01 -0700 (PDT) In-Reply-To: References: From: Sam Overton Date: Tue, 28 May 2013 16:22:01 +0100 Message-ID: Subject: Re: Running Cassandra with no open TCP ports To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7bb04652db8ff704ddc8d457 X-Gm-Message-State: ALoCoQl/AewS5uwvRwgjmsAVIwcEauv5iZRWJIdj43dHiplKXObfpFUnUN52LRaeyuJwW2JWzlVw X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb04652db8ff704ddc8d457 Content-Type: text/plain; charset=ISO-8859-1 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 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 --047d7bb04652db8ff704ddc8d457 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
You can configure cassandra to use an ephemeral port for t= he storage endpoint by setting the following in cassandra.yaml:
storage= _port: 0

or by setting the system = property cassandra.storage_port=3D0

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

Regards,

Sam


On 2= 8 May 2013 03:24, Mark Mccraw <Mark.Mccraw@sas.com> wrote:=
Hi All,

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

Thanks!
Mark






--
Sam= Overton
Acunu |=A0http://www.acunu.com=A0| @acunu
--047d7bb04652db8ff704ddc8d457--