Hi,
I'm trying to set up a test environment with 2 nodes on one physical machine with two ips. I configured both as adviced in the documentation:
cluster_name: 'MyDemoCluster'
initial_token: 0
seed_provider:
- seeds: "IP1"
listen_address: IP1
rpc_address: IP1
cluster_name: 'MyDemoCluster'
initial_token: 85070591730234615865843651857942052864
seed_provider:
- seeds: "IP1"
listen_address: IP2
rpc_address: IP2
Node1 uses 7199 as JMX port, Node2 7198 because JMX by default is listening on all interfaces.
When I bootstrap node2, on node1 following exception is thrown and node1 terminates. the same error occurs again if I try to restart node1 and node2 is still running.
Does anyone of you have an idea why this happens? I'm starting each cassandra instance with 16GB RAM and my database is empty. I can reach node1 via telnet on port 7000 from node2.
Exception on Node1
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at java.util.concurrent.ThreadPoolExecutor.addIfUnderCorePoolSize(ThreadPoolExecutor.java:703)
at java.util.concurrent.ThreadPoolExecutor.prestartAllCoreThreads(ThreadPoolExecutor.java:1384)
at org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>(JMXEnabledThreadPoolExecutor.java:77)
at org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>(JMXEnabledThreadPoolExecutor.java:65)
at org.apache.cassandra.concurrent.StageManager.multiThreadedStage(StageManager.java:58)
at org.apache.cassandra.concurrent.StageManager.<clinit>(StageManager.java:44)
at org.apache.cassandra.net.MessagingService.receive(MessagingService.java:512)
at org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTcpConnection.java:159)
Log on Node2:
INFO 15:54:47,371 Joining: waiting for ring and schema information
mach k2e04/k2e3272> INFO 15:55:17,371 Joining: getting bootstrap token
ERROR 15:55:17,376 Exception encountered during startup
java.lang.RuntimeException: No other nodes seen! Unable to bootstrap.If you intended to start a single-node cluster, you should make sure your broadcast_address (or listen_address) is listed as a seed. Otherwise, you need to determine why the seed being contacted has no knowledge of the rest of the cluster. Usually, this can be solved by giving all nodes the same seed list.
at org.apache.cassandra.dht.BootStrapper.getBootstrapSource(BootStrapper.java:168)
at org.apache.cassandra.dht.BootStrapper.getBalancedToken(BootStrapper.java:150)
at org.apache.cassandra.dht.BootStrapper.getBootstrapToken(BootStrapper.java:145)
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:523)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:460)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:381)
at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:215)
at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:337)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
java.lang.RuntimeException: No other nodes seen! Unable to bootstrap.If you intended to start a single-node cluster, you should make sure your broadcast_address (or listen_address) is listed as a seed. Otherwise, you need to determine why the seed being contacted has no knowledge of the rest of the cluster. Usually, this can be solved by giving all nodes the same seed list.
at org.apache.cassandra.dht.BootStrapper.getBootstrapSource(BootStrapper.java:168)
at org.apache.cassandra.dht.BootStrapper.getBalancedToken(BootStrapper.java:150)
at org.apache.cassandra.dht.BootStrapper.getBootstrapToken(BootStrapper.java:145)
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:523)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:460)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:381)
at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:215)
at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:337)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
Exception encountered during startup: No other nodes seen! Unable to bootstrap.If you intended to start a single-node cluster, you should make sure your broadcast_address (or listen_address) is listed as a seed. Otherwise, you need to determine why the seed being contacted has no knowledge of the rest of the cluster. Usually, this can be solved by giving all nodes the same seed list.
ERROR 15:55:17,778 Fatal exception in thread Thread[Thread-2,5,main]
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at java.util.concurrent.ThreadPoolExecutor.addIfUnderCorePoolSize(ThreadPoolExecutor.java:703)
at java.util.concurrent.ThreadPoolExecutor.prestartAllCoreThreads(ThreadPoolExecutor.java:1384)
at org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>(JMXEnabledThreadPoolExecutor.java:77)
at org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>(JMXEnabledThreadPoolExecutor.java:65)
at org.apache.cassandra.concurrent.StageManager.multiThreadedStage(StageManager.java:58)
at org.apache.cassandra.concurrent.StageManager.<clinit>(StageManager.java:44)
at org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:419)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
at java.lang.Thread.run(Thread.java:619)
at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:95)
