2

Hi I am trying to setup multiple node for my cluster in windows machine , I have found various tutorials regarding Configuring multiple nodes for Ubuntu, but I am not able to find a proper step by step tutorial for setting up multiple node for my single windows machine.

If someone had added multiple nodes to their windows machine , please help me guide the Process.....

I know we need to tweak the cassandra.yaml file for this but dont know the correct way to do that .

JavaRookie
  • 225
  • 1
  • 2
  • 9
  • 1
    their is no meaning of creating multiple node cluster on single machine because you are dividing the same ram and memory to different cluster.. – Helping Hand.. Nov 24 '14 at 11:52
  • I am beginner with cassandra ,just wanted to use it for testing purpose.If you can provide a solution it would help ...plz – JavaRookie Nov 24 '14 at 12:09
  • @JavaRookie one option would be to use Vagrant virtual machines on your Windows host. Here's a set of templates I created: http://www.cantoni.org/2014/08/26/vagrant-cassandra – BrianC Nov 24 '14 at 16:51
  • I posted a detailed answer on how to create a local multi-node Cassandra cluster on Windows 7 here http://stackoverflow.com/a/34199571/181406 – Adrian Dec 10 '15 at 10:38

1 Answers1

1

ccm is the tool you're after. There has been a number of patches to enable windows support.

Failing that (since the install isn't the simplest thing) You can try to emulate what ccm does. Which is to modify the rpc_port in cassandra.yaml, the storage port (storage_port), native_transport_port, the JMX port . These need to be modified for each server.

Failing that you'll need to modify a number of options in cassandra.yaml for each node on the machine. These settings are as follows (i'll give 2 examples for each)

  • data_file_directories [/var/lib/cassandra/1/data, /var/lib/cassandra/2/data]
  • commitlog_directory [/var/lib/cassandra/1/commitlog, /var/lib/cassandra/2/commitlog]
  • saved_caches_directory [/var/lib/cassandra/1/saved_caches, /var/lib/cassandra/2/saved_caches]
  • listen_address: [127.0.0.1, 127.0.0.2]
  • rpc_address: [127.0.0.1. 127.0.0.2]
  • JMX_PORT - This one is a bit more complicated as you must edint cassandra.bat. Open up the batch file and search for -Dcom.sun.management.jmxremote.port=7199^. For each server change the port to 7x00 where the x represents the number of the node. E.g. node1 = 7100, node2 = 7200 etc.

These should be all the settings to configure multiple nodes manually, but I'd advise you to play around with python 2.7 and configure ccm. The tool is brilliant and can save you lots of dev time. Automation ftw.

Lyuben Todorov
  • 13,987
  • 5
  • 50
  • 69
  • anyone or @Lyuben Todorov ...Can u suggest any steps to install and use CCM on windows 7 Machine , actually I am on a deadline for this feature ? It would help very much. – JavaRookie Nov 24 '14 at 19:47
  • @JavaRookie Hi, take a look at [this comment](http://www.datastax.com/dev/blog/ccm-a-development-tool-for-creating-local-cassandra-clusters#comment-2888407) by vinod in a blogpost about ccm. – Lyuben Todorov Nov 24 '14 at 19:53