DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


question

sunil281984 avatar image
sunil281984 asked Erick Ramirez answered

Cannot start node3 after power off in DSE210 adding and removing nodes

Hello ,

As per the exercise in DS210 . I have added node as per the exercise document and everything worked fine. After the reboot of the VM. I went on to removing or decommissioning the node 3 . Tried to restart the Node 1 and 3 . Am able to start node1 but node 3 as errors. While checking the Nodetool status of the o/p command as below on node1 :

ubuntu@ds210-node1:~$ nodetool status
Datacenter: dc1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving/Stopped
-- Address Load Tokens Owns (effective) Host ID Rack
UN 172.18.0.2 340.37 KiB 8 43.0% 1576b11c-12ea-4f5b-80c9-e60b9781e86a rack1
DS 172.18.0.4 ? 8 57.0% a90c08d3-55c2-4c81-807c-d33e835242fe rack1

On node 3 : while starting up sudo service dse start. I have error as below:

root@ds210-node3:~# sudo service dse start
* Starting DSE daemon dse
DSE daemon starting with only Cassandra enabled (edit /etc/default/dse to enable other features)
/etc/init.d/dse: 503: ulimit: error setting limit (Operation not permitted)
ERROR: DSE failed to start. Please check your logs.

Please have a look the error in system.log file as below and help me out on fixing this:

ERROR [main] 2021-08-13 13:50:30,438 CassandraDaemon.java:853 - Exception encountered during startup
java.net.BindException: Cannot assign requested address
 at sun.nio.ch.Net.bind0(Native Method)
 at sun.nio.ch.Net.bind(Net.java:433)
 at sun.nio.ch.Net.bind(Net.java:425)
 at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:220)
 at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128)
 at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:575)
 at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358)
 at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
 at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
 at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019)
 at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:271)
 at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366)
 at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
 at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
 at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:465)
 at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
 at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
 at java.lang.Thread.run(Thread.java:748)
ds210
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

As this error suggests:

java.net.BindException: Cannot assign requested address

the IP address you specified in cassandra.yaml isn't available for the node to use.

You need to check what IPs are available on the VM to use. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.