Running multiple cassandra instances on one machine
This is my second attempt at setting up a 3-node Cassandra cluster on my machine. I'm not able to start the first instance.
During startup I get
Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra-2.2.8/conf/cassandra.yaml
and alot of lines that I'm not able to make any sense of (I fail to see why the yaml is invalid).
My approach consisted of the following steps:
I unzipped a tarball installation into 3 folders (as i want 3 instances).
In each
cassandra.yaml
:cluster_name
was setseeds:
"127.0.0.2" (same for all nodes)rpc_address, listen_address
were set to 127.0.0.2-4 for all nodesrpc_port
was set (9160, 9161, 9162)data_file_directories
,commitlog_directories
,saved_caches_directory
were set for all
In each
cassandra-env.sh
theJMX_PORT
was set (8081,8082,8083)
etc/hosts
was edited so that 127.2-4 are aliases for 127.0.0.1
My questions are: What am I doing wrong? How can this be fixed? Is there any other simple way to do this on ubuntu?
I'm including the error incase it makes any sense. Will remove if it takes up too much space.
ERROR 12:19:12 Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra-2.2.8/conf/cassandra.yaml
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:118) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:85) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:507) [apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:641) [apache-cassandra-2.2.8.jar:2.2.8]
Caused by: org.yaml.snakeyaml.constructor.ConstructorException: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=data_file_directories for JavaBean=org.apache.cassandra.config.Config@24a35978; No single argument constructor found for class [Ljava.lang.String;; in 'reader', line 10, column 1:
cluster_name: 'Testcluster'
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:475) ~[snakeyaml-1.11.jar:na]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:111) ~[apache-cassandra-2.2.8.jar:2.2.8]
... 5 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=data_file_directories for JavaBean=org.apache.cassandra.config.Config@24a35978; No single argument constructor found for class [Ljava.lang.String;
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:189) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331) ~[snakeyaml-1.11.jar:na]
... 11 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument constructor found for class [Ljava.lang.String;
at org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(Constructor.java:379) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:296) ~[snakeyaml-1.11.jar:na]
... 13 common frames omitted
cassandra
|
show 3 more comments
This is my second attempt at setting up a 3-node Cassandra cluster on my machine. I'm not able to start the first instance.
During startup I get
Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra-2.2.8/conf/cassandra.yaml
and alot of lines that I'm not able to make any sense of (I fail to see why the yaml is invalid).
My approach consisted of the following steps:
I unzipped a tarball installation into 3 folders (as i want 3 instances).
In each
cassandra.yaml
:cluster_name
was setseeds:
"127.0.0.2" (same for all nodes)rpc_address, listen_address
were set to 127.0.0.2-4 for all nodesrpc_port
was set (9160, 9161, 9162)data_file_directories
,commitlog_directories
,saved_caches_directory
were set for all
In each
cassandra-env.sh
theJMX_PORT
was set (8081,8082,8083)
etc/hosts
was edited so that 127.2-4 are aliases for 127.0.0.1
My questions are: What am I doing wrong? How can this be fixed? Is there any other simple way to do this on ubuntu?
I'm including the error incase it makes any sense. Will remove if it takes up too much space.
ERROR 12:19:12 Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra-2.2.8/conf/cassandra.yaml
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:118) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:85) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:507) [apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:641) [apache-cassandra-2.2.8.jar:2.2.8]
Caused by: org.yaml.snakeyaml.constructor.ConstructorException: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=data_file_directories for JavaBean=org.apache.cassandra.config.Config@24a35978; No single argument constructor found for class [Ljava.lang.String;; in 'reader', line 10, column 1:
cluster_name: 'Testcluster'
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:475) ~[snakeyaml-1.11.jar:na]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:111) ~[apache-cassandra-2.2.8.jar:2.2.8]
... 5 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=data_file_directories for JavaBean=org.apache.cassandra.config.Config@24a35978; No single argument constructor found for class [Ljava.lang.String;
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:189) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331) ~[snakeyaml-1.11.jar:na]
... 11 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument constructor found for class [Ljava.lang.String;
at org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(Constructor.java:379) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:296) ~[snakeyaml-1.11.jar:na]
... 13 common frames omitted
cassandra
What is the Cassandra version you are using? You can't just define IP addresses 127.0.0.1-3, have you added it your hosts entry or some where to define where it should lookup when 127.0.0.1-3 is used? I assume you are accessing your Cassandra from your localhost itself.
– Shoban Sundar
Mar 14 '17 at 18:12
@ShobanSundar I am using version 2.2. I thought those were loopback addresses (so i didnt have to 'do' anything, if that makes sense)? Have not defined the lookup nor added to hosts entry. Yes I am running Cassandra from my localhost. As you probably can tell: I am a beginner, so its quite possible I'm missing some steps.
– clueless
Mar 14 '17 at 21:48
This post might help you to run multiple instances of Cassandra in single host: stackoverflow.com/questions/42644396/…
– Shoban Sundar
Mar 15 '17 at 8:37
@ShobanSundar Threadstarter wants to reach the nodes from a different machine (which is why he needs addresses that can be identified by other machines). So the problem and solution is to something else. However, it seems like the first part of that post is what i want (i.e. running several instances on a single machine) and where i am experiencing problems.
– clueless
Mar 15 '17 at 10:09
@ShobanSundar I tried using aliases to the loopback interface now, but the same problem remains. Is this what you were thinking of?
– clueless
Mar 16 '17 at 9:57
|
show 3 more comments
This is my second attempt at setting up a 3-node Cassandra cluster on my machine. I'm not able to start the first instance.
During startup I get
Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra-2.2.8/conf/cassandra.yaml
and alot of lines that I'm not able to make any sense of (I fail to see why the yaml is invalid).
My approach consisted of the following steps:
I unzipped a tarball installation into 3 folders (as i want 3 instances).
In each
cassandra.yaml
:cluster_name
was setseeds:
"127.0.0.2" (same for all nodes)rpc_address, listen_address
were set to 127.0.0.2-4 for all nodesrpc_port
was set (9160, 9161, 9162)data_file_directories
,commitlog_directories
,saved_caches_directory
were set for all
In each
cassandra-env.sh
theJMX_PORT
was set (8081,8082,8083)
etc/hosts
was edited so that 127.2-4 are aliases for 127.0.0.1
My questions are: What am I doing wrong? How can this be fixed? Is there any other simple way to do this on ubuntu?
I'm including the error incase it makes any sense. Will remove if it takes up too much space.
ERROR 12:19:12 Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra-2.2.8/conf/cassandra.yaml
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:118) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:85) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:507) [apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:641) [apache-cassandra-2.2.8.jar:2.2.8]
Caused by: org.yaml.snakeyaml.constructor.ConstructorException: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=data_file_directories for JavaBean=org.apache.cassandra.config.Config@24a35978; No single argument constructor found for class [Ljava.lang.String;; in 'reader', line 10, column 1:
cluster_name: 'Testcluster'
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:475) ~[snakeyaml-1.11.jar:na]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:111) ~[apache-cassandra-2.2.8.jar:2.2.8]
... 5 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=data_file_directories for JavaBean=org.apache.cassandra.config.Config@24a35978; No single argument constructor found for class [Ljava.lang.String;
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:189) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331) ~[snakeyaml-1.11.jar:na]
... 11 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument constructor found for class [Ljava.lang.String;
at org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(Constructor.java:379) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:296) ~[snakeyaml-1.11.jar:na]
... 13 common frames omitted
cassandra
This is my second attempt at setting up a 3-node Cassandra cluster on my machine. I'm not able to start the first instance.
During startup I get
Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra-2.2.8/conf/cassandra.yaml
and alot of lines that I'm not able to make any sense of (I fail to see why the yaml is invalid).
My approach consisted of the following steps:
I unzipped a tarball installation into 3 folders (as i want 3 instances).
In each
cassandra.yaml
:cluster_name
was setseeds:
"127.0.0.2" (same for all nodes)rpc_address, listen_address
were set to 127.0.0.2-4 for all nodesrpc_port
was set (9160, 9161, 9162)data_file_directories
,commitlog_directories
,saved_caches_directory
were set for all
In each
cassandra-env.sh
theJMX_PORT
was set (8081,8082,8083)
etc/hosts
was edited so that 127.2-4 are aliases for 127.0.0.1
My questions are: What am I doing wrong? How can this be fixed? Is there any other simple way to do this on ubuntu?
I'm including the error incase it makes any sense. Will remove if it takes up too much space.
ERROR 12:19:12 Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra-2.2.8/conf/cassandra.yaml
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:118) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:85) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119) ~[apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:507) [apache-cassandra-2.2.8.jar:2.2.8]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:641) [apache-cassandra-2.2.8.jar:2.2.8]
Caused by: org.yaml.snakeyaml.constructor.ConstructorException: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=data_file_directories for JavaBean=org.apache.cassandra.config.Config@24a35978; No single argument constructor found for class [Ljava.lang.String;; in 'reader', line 10, column 1:
cluster_name: 'Testcluster'
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:475) ~[snakeyaml-1.11.jar:na]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:111) ~[apache-cassandra-2.2.8.jar:2.2.8]
... 5 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=data_file_directories for JavaBean=org.apache.cassandra.config.Config@24a35978; No single argument constructor found for class [Ljava.lang.String;
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:189) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331) ~[snakeyaml-1.11.jar:na]
... 11 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument constructor found for class [Ljava.lang.String;
at org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(Constructor.java:379) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) ~[snakeyaml-1.11.jar:na]
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:296) ~[snakeyaml-1.11.jar:na]
... 13 common frames omitted
cassandra
cassandra
edited Mar 17 '17 at 13:31
clueless
asked Mar 14 '17 at 13:56
cluelessclueless
3517
3517
What is the Cassandra version you are using? You can't just define IP addresses 127.0.0.1-3, have you added it your hosts entry or some where to define where it should lookup when 127.0.0.1-3 is used? I assume you are accessing your Cassandra from your localhost itself.
– Shoban Sundar
Mar 14 '17 at 18:12
@ShobanSundar I am using version 2.2. I thought those were loopback addresses (so i didnt have to 'do' anything, if that makes sense)? Have not defined the lookup nor added to hosts entry. Yes I am running Cassandra from my localhost. As you probably can tell: I am a beginner, so its quite possible I'm missing some steps.
– clueless
Mar 14 '17 at 21:48
This post might help you to run multiple instances of Cassandra in single host: stackoverflow.com/questions/42644396/…
– Shoban Sundar
Mar 15 '17 at 8:37
@ShobanSundar Threadstarter wants to reach the nodes from a different machine (which is why he needs addresses that can be identified by other machines). So the problem and solution is to something else. However, it seems like the first part of that post is what i want (i.e. running several instances on a single machine) and where i am experiencing problems.
– clueless
Mar 15 '17 at 10:09
@ShobanSundar I tried using aliases to the loopback interface now, but the same problem remains. Is this what you were thinking of?
– clueless
Mar 16 '17 at 9:57
|
show 3 more comments
What is the Cassandra version you are using? You can't just define IP addresses 127.0.0.1-3, have you added it your hosts entry or some where to define where it should lookup when 127.0.0.1-3 is used? I assume you are accessing your Cassandra from your localhost itself.
– Shoban Sundar
Mar 14 '17 at 18:12
@ShobanSundar I am using version 2.2. I thought those were loopback addresses (so i didnt have to 'do' anything, if that makes sense)? Have not defined the lookup nor added to hosts entry. Yes I am running Cassandra from my localhost. As you probably can tell: I am a beginner, so its quite possible I'm missing some steps.
– clueless
Mar 14 '17 at 21:48
This post might help you to run multiple instances of Cassandra in single host: stackoverflow.com/questions/42644396/…
– Shoban Sundar
Mar 15 '17 at 8:37
@ShobanSundar Threadstarter wants to reach the nodes from a different machine (which is why he needs addresses that can be identified by other machines). So the problem and solution is to something else. However, it seems like the first part of that post is what i want (i.e. running several instances on a single machine) and where i am experiencing problems.
– clueless
Mar 15 '17 at 10:09
@ShobanSundar I tried using aliases to the loopback interface now, but the same problem remains. Is this what you were thinking of?
– clueless
Mar 16 '17 at 9:57
What is the Cassandra version you are using? You can't just define IP addresses 127.0.0.1-3, have you added it your hosts entry or some where to define where it should lookup when 127.0.0.1-3 is used? I assume you are accessing your Cassandra from your localhost itself.
– Shoban Sundar
Mar 14 '17 at 18:12
What is the Cassandra version you are using? You can't just define IP addresses 127.0.0.1-3, have you added it your hosts entry or some where to define where it should lookup when 127.0.0.1-3 is used? I assume you are accessing your Cassandra from your localhost itself.
– Shoban Sundar
Mar 14 '17 at 18:12
@ShobanSundar I am using version 2.2. I thought those were loopback addresses (so i didnt have to 'do' anything, if that makes sense)? Have not defined the lookup nor added to hosts entry. Yes I am running Cassandra from my localhost. As you probably can tell: I am a beginner, so its quite possible I'm missing some steps.
– clueless
Mar 14 '17 at 21:48
@ShobanSundar I am using version 2.2. I thought those were loopback addresses (so i didnt have to 'do' anything, if that makes sense)? Have not defined the lookup nor added to hosts entry. Yes I am running Cassandra from my localhost. As you probably can tell: I am a beginner, so its quite possible I'm missing some steps.
– clueless
Mar 14 '17 at 21:48
This post might help you to run multiple instances of Cassandra in single host: stackoverflow.com/questions/42644396/…
– Shoban Sundar
Mar 15 '17 at 8:37
This post might help you to run multiple instances of Cassandra in single host: stackoverflow.com/questions/42644396/…
– Shoban Sundar
Mar 15 '17 at 8:37
@ShobanSundar Threadstarter wants to reach the nodes from a different machine (which is why he needs addresses that can be identified by other machines). So the problem and solution is to something else. However, it seems like the first part of that post is what i want (i.e. running several instances on a single machine) and where i am experiencing problems.
– clueless
Mar 15 '17 at 10:09
@ShobanSundar Threadstarter wants to reach the nodes from a different machine (which is why he needs addresses that can be identified by other machines). So the problem and solution is to something else. However, it seems like the first part of that post is what i want (i.e. running several instances on a single machine) and where i am experiencing problems.
– clueless
Mar 15 '17 at 10:09
@ShobanSundar I tried using aliases to the loopback interface now, but the same problem remains. Is this what you were thinking of?
– clueless
Mar 16 '17 at 9:57
@ShobanSundar I tried using aliases to the loopback interface now, but the same problem remains. Is this what you were thinking of?
– clueless
Mar 16 '17 at 9:57
|
show 3 more comments
2 Answers
2
active
oldest
votes
I would just use CCM if this is strictly for testing purposes on local machine.
https://github.com/pcmanus/ccm
Yes CCM is my last resort, if doing it manually turns out to be impossible. In theory it should be 'simple' to do this on Ubuntu (according to various sources), so prefer to do it that way.
– clueless
Mar 14 '17 at 21:52
add a comment |
It looks like your cofiguration is correct, I Have done exactly what you describe and it works fine.
Problem seems to be that you have some sort of error in cassandra.yaml
file. Please check line:
data_file_directories:
- /var/lib/cassandra/data
It works when it is like this (two lines), when you put it in one line it throws error from your post.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42787954%2frunning-multiple-cassandra-instances-on-one-machine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I would just use CCM if this is strictly for testing purposes on local machine.
https://github.com/pcmanus/ccm
Yes CCM is my last resort, if doing it manually turns out to be impossible. In theory it should be 'simple' to do this on Ubuntu (according to various sources), so prefer to do it that way.
– clueless
Mar 14 '17 at 21:52
add a comment |
I would just use CCM if this is strictly for testing purposes on local machine.
https://github.com/pcmanus/ccm
Yes CCM is my last resort, if doing it manually turns out to be impossible. In theory it should be 'simple' to do this on Ubuntu (according to various sources), so prefer to do it that way.
– clueless
Mar 14 '17 at 21:52
add a comment |
I would just use CCM if this is strictly for testing purposes on local machine.
https://github.com/pcmanus/ccm
I would just use CCM if this is strictly for testing purposes on local machine.
https://github.com/pcmanus/ccm
answered Mar 14 '17 at 14:20
juniormint88juniormint88
1263
1263
Yes CCM is my last resort, if doing it manually turns out to be impossible. In theory it should be 'simple' to do this on Ubuntu (according to various sources), so prefer to do it that way.
– clueless
Mar 14 '17 at 21:52
add a comment |
Yes CCM is my last resort, if doing it manually turns out to be impossible. In theory it should be 'simple' to do this on Ubuntu (according to various sources), so prefer to do it that way.
– clueless
Mar 14 '17 at 21:52
Yes CCM is my last resort, if doing it manually turns out to be impossible. In theory it should be 'simple' to do this on Ubuntu (according to various sources), so prefer to do it that way.
– clueless
Mar 14 '17 at 21:52
Yes CCM is my last resort, if doing it manually turns out to be impossible. In theory it should be 'simple' to do this on Ubuntu (according to various sources), so prefer to do it that way.
– clueless
Mar 14 '17 at 21:52
add a comment |
It looks like your cofiguration is correct, I Have done exactly what you describe and it works fine.
Problem seems to be that you have some sort of error in cassandra.yaml
file. Please check line:
data_file_directories:
- /var/lib/cassandra/data
It works when it is like this (two lines), when you put it in one line it throws error from your post.
add a comment |
It looks like your cofiguration is correct, I Have done exactly what you describe and it works fine.
Problem seems to be that you have some sort of error in cassandra.yaml
file. Please check line:
data_file_directories:
- /var/lib/cassandra/data
It works when it is like this (two lines), when you put it in one line it throws error from your post.
add a comment |
It looks like your cofiguration is correct, I Have done exactly what you describe and it works fine.
Problem seems to be that you have some sort of error in cassandra.yaml
file. Please check line:
data_file_directories:
- /var/lib/cassandra/data
It works when it is like this (two lines), when you put it in one line it throws error from your post.
It looks like your cofiguration is correct, I Have done exactly what you describe and it works fine.
Problem seems to be that you have some sort of error in cassandra.yaml
file. Please check line:
data_file_directories:
- /var/lib/cassandra/data
It works when it is like this (two lines), when you put it in one line it throws error from your post.
answered Nov 13 '18 at 11:10
KeyElKeyEl
112
112
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42787954%2frunning-multiple-cassandra-instances-on-one-machine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is the Cassandra version you are using? You can't just define IP addresses 127.0.0.1-3, have you added it your hosts entry or some where to define where it should lookup when 127.0.0.1-3 is used? I assume you are accessing your Cassandra from your localhost itself.
– Shoban Sundar
Mar 14 '17 at 18:12
@ShobanSundar I am using version 2.2. I thought those were loopback addresses (so i didnt have to 'do' anything, if that makes sense)? Have not defined the lookup nor added to hosts entry. Yes I am running Cassandra from my localhost. As you probably can tell: I am a beginner, so its quite possible I'm missing some steps.
– clueless
Mar 14 '17 at 21:48
This post might help you to run multiple instances of Cassandra in single host: stackoverflow.com/questions/42644396/…
– Shoban Sundar
Mar 15 '17 at 8:37
@ShobanSundar Threadstarter wants to reach the nodes from a different machine (which is why he needs addresses that can be identified by other machines). So the problem and solution is to something else. However, it seems like the first part of that post is what i want (i.e. running several instances on a single machine) and where i am experiencing problems.
– clueless
Mar 15 '17 at 10:09
@ShobanSundar I tried using aliases to the loopback interface now, but the same problem remains. Is this what you were thinking of?
– clueless
Mar 16 '17 at 9:57