I want to run a cluster (3 instances) in a single server. Configuration of my VM:
- host-only adapter: static IP 192.168...
- bridge adapter

I create 3 environments (data dir, admin dir, conf file...) for the 3 instances. But I'm now blocked in the network configuration.
I can use 1 IP address for the 3 instances? And just modify the port?
If yes, which parameters I have to change?

Regards

Mehdi Bada | Consultant
Phone: +41 32 422 96 00 | Mobile: +41 79 928 75 48 | Fax: +41 32 499 96 15
dbi services, Rue de la Jeunesse 2, CH-2800 Delémont
mehdi.bada@dbi-services.com
www.dbi-services.com




From: "Vladimir Yudovin" <vladyu@winguzone.com>
To: "user" <user@cassandra.apache.org>
Sent: Tuesday, October 4, 2016 8:53:22 PM
Subject: Re: Re: Cassandra listen port

>Use multiple IP addresses instead.
>Virtual addresses can be possible also?
>eth0:0, eth0:1

Why multiple or virtual IP?

You can use the same IP for both addresses, as they use different TCP ports. Sure, it's better to use internal IP (like 10... or 192.168...) for internode connect, but it's not demand.

Best regards, Vladimir Yudovin,
Winguzone Inc - Hosted Cloud Cassandra on Azure and SoftLayer.
Launch your cluster in minutes.



---- On Tue, 04 Oct 2016 14:51:59 -0400 Benjamin Roth <benjamin.roth@jaumo.com> wrote ----
Of course, just add aliases to your interfaces (like eth0:0, eth0:1, ...).
For example CCM (https://github.com/pcmanus/ccm) uses 127.0.0.[1-255] to set up multiple CS instances on a single server.

2016-10-04 20:49 GMT+02:00 Mehdi Bada <mehdi.bada@dbi-services.com>:
Virtual addresses can be possible also?

Thanks Benjamin

Mehdi Bada | Consultant
Phone: +41 32 422 96 00 | Mobile: +41 79 928 75 48 | Fax: +41 32 422 96 15 dbi services, Rue de la Jeunesse 2, CH-2800 Delémont
mehdi.bada@dbi-services.com www.dbi-services.com

⇒ dbi services is recruiting Oracle & SQL Server experts ! – Join the team


----- Original Message -----
From: Benjamin Roth <benjamin.roth@jaumo.com>
To: user@cassandra.apache.org
Sent: Tue, 04 Oct 2016 20:36:49 +0200 (CEST)
Subject: Re: Cassandra listen port

As far as I can see, these ports are also used for outgoing connection, so
a node expects all other peers also to use that port. Therefore the answer
is no. Use multiple IP addresses instead.

2016-10-04 20:03 GMT+02:00 Mehdi Bada <mehdi.bada@dbi-services.com>:

> Thanks Vladimir.
> It means if I want to run Cassandra on multi instance environment I only
> have to change the listen address of each instance and the 9000 CQL port??
>
>
> ---
> Mehdi Bada | Consultant
> Phone: +41 32 422 96 00 | Mobile: +41 79 928 75 48 | Fax: +41 32 422 96 15
> dbi services, Rue de la Jeunesse 2, CH-2800 Delémont
> mehdi.bada@dbi-services.com www.dbi-services.com
>
> ⇒ dbi services is recruiting Oracle & SQL Server experts ! – Join the team
>
>
> ----- Original Message -----
> From: Vladimir Yudovin <vladyu@winguzone.com>
> To: user@cassandra.apache.org
> Sent: Tue, 04 Oct 2016 18:18:19 +0200 (CEST)
> Subject: Re: Cassandra listen port
>
> Actually the main port is 9042 - for client (CQL) connections and 7000
> (7001 if SSL enabled) for inter node communications.
>
> Best regards, Vladimir Yudovin,
> Winguzone Inc - Hosted Cloud Cassandra on Azure and SoftLayer.
> Launch your cluster in minutes.
>
>
>
>
> ---- On Tue, 04 Oct 2016 11:36:04 -0400 Benjamin
> Roth&lt;benjamin.roth@jaumo.com&gt; wrote ----
>
> There are several ports for several services. They are all set in
> cassandra.yaml
>
> See here for complete documentation:
> https://docs.datastax.com/en/cassandra/2.1/cassandra/
> configuration/configCassandra_yaml_r.html
>
>
>
> 2016-10-04 16:54 GMT+02:00 Mehdi Bada &lt;mehdi.bada@dbi-services.com&gt;:
> Hi all,
>
>
>
> What is the listen port parameter for Apache Cassandra? Does it exist?
>
> In comparison with MongoDB, in mongo it's possible to set the listen port
> in the mongod.conf (configuration file)
>
>
>
> Regards
>
> Mehdi
>
>
>
> Mehdi Bada | Consultant
> Phone: +41 32 422 96 00 | Mobile: +41 79 928 75 48 | Fax: +41 32 422 96 15
> dbi services, Rue de la Jeunesse 2, CH-2800 Delémont
> mehdi.bada@dbi-services.com
> www.dbi-services.com
>
>
>
>
>
>
>
>
>
> ⇒ dbi services is recruiting Oracle &amp; SQL Server experts ! – Join the
> team
>
>
>
>
>
>
>
>
>
> --
> Benjamin Roth
> Prokurist
>
> Jaumo GmbH · www.jaumo.com
> Wehrstraße 46 · 73035 Göppingen · Germany
> Phone +49 7161 304880-6 · Fax +49 7161 304880-1
> AG Ulm · HRB 731058 · Managing Director: Jens Kammerer
>
>
>
>
>
>
>
>
>


--
Benjamin Roth
Prokurist

Jaumo GmbH · www.jaumo.com
Wehrstraße 46 · 73035 Göppingen · Germany
Phone +49 7161 304880-6 · Fax +49 7161 304880-1
AG Ulm · HRB 731058 · Managing Director: Jens Kammerer




--
Benjamin Roth
Prokurist

Jaumo GmbH · www.jaumo.com
Wehrstraße 46 · 73035 Göppingen · Germany
Phone +49 7161 304880-6 · Fax +49 7161 304880-1
AG Ulm · HRB 731058 · Managing Director: Jens Kammerer