Spark Shell logs: 17/05/22 07:15:04 ERROR TaskSchedulerImpl: Lost executor 0 on 52.42.183.66: Unable to create executor due to Cannot assign requested address: Service 'org.apache.spark.network.netty.NettyBlockTransferService' failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service 'org.apache.spark.network.netty.NettyBlockTransferService' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries. 17/05/22 07:15:04 WARN TransportChannelHandler: Exception in connection from /172.31.1.30:36544 java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:192) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:221) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:899) at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:275) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:652) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:575) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:489) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:451) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) at java.lang.Thread.run(Thread.java:748) Agent logs: I0522 07:09:58.019052 14669 slave.cpp:1625] Got assigned task '0' for framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 I0522 07:09:58.019302 14669 slave.cpp:1785] Launching task '0' for framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 I0522 07:09:58.020057 14669 paths.cpp:547] Trying to chown '/tmp/zaara/slaves/410c1f30-1093-4d52-84f7-84e9a5951fa9-S0/frameworks/3b5640e6-c7e6-4333-8c1b-85742459a162-0001/executors/0/runs/9d46c33d-7499-4355-ab3b-cb8c37fd98e6' to user 'root' I0522 07:09:58.020421 14669 slave.cpp:6480] Launching executor '0' of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 with resources cpus(*)(allocated: *):0.1; mem(*)(allocated: *):32 in work directory '/tmp/zaara/slaves/410c1f30-1093-4d52-84f7-84e9a5951fa9-S0/frameworks/3b5640e6-c7e6-4333-8c1b-85742459a162-0001/executors/0/runs/9d46c33d-7499-4355-ab3b-cb8c37fd98e6' I0522 07:09:58.020648 14663 containerizer.cpp:992] Starting container 9d46c33d-7499-4355-ab3b-cb8c37fd98e6 for executor '0' of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 I0522 07:09:58.020685 14669 slave.cpp:2118] Queued task '0' for executor '0' of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 I0522 07:09:58.022627 14667 linux_launcher.cpp:429] Launching container 9d46c33d-7499-4355-ab3b-cb8c37fd98e6 and cloning with namespaces I0522 07:09:58.041515 14667 systemd.cpp:96] Assigned child process '14677' to 'mesos_executors.slice' I0522 07:10:04.263532 14664 slave.cpp:3385] Got registration for executor '0' of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 from executor(1)@172.31.1.205:37547 I0522 07:10:04.264129 14668 slave.cpp:2331] Sending queued task '0' to executor '0' of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 at executor(1)@172.31.1.205:37547 I0522 07:10:04.267918 14668 slave.cpp:3816] Handling status update TASK_RUNNING (UUID: 02513b4d-b53b-4387-85fc-6020b6bb2dee) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 from executor(1)@172.31.1.205:37547 I0522 07:10:04.268380 14669 status_update_manager.cpp:323] Received status update TASK_RUNNING (UUID: 02513b4d-b53b-4387-85fc-6020b6bb2dee) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 I0522 07:10:04.268630 14668 slave.cpp:4256] Forwarding the update TASK_RUNNING (UUID: 02513b4d-b53b-4387-85fc-6020b6bb2dee) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 to master@172.31.1.93:5050 I0522 07:10:04.268735 14668 slave.cpp:4166] Sending acknowledgement for status update TASK_RUNNING (UUID: 02513b4d-b53b-4387-85fc-6020b6bb2dee) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 to executor(1)@172.31.1.205:37547 I0522 07:10:04.297199 14662 status_update_manager.cpp:395] Received status update acknowledgement (UUID: 02513b4d-b53b-4387-85fc-6020b6bb2dee) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 I0522 07:10:06.872078 14669 slave.cpp:3816] Handling status update TASK_FAILED (UUID: fd49de4a-a6dc-4cc2-bbad-c7383ebffb34) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 from executor(1)@172.31.1.205:37547 I0522 07:10:06.872750 14662 status_update_manager.cpp:323] Received status update TASK_FAILED (UUID: fd49de4a-a6dc-4cc2-bbad-c7383ebffb34) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 I0522 07:10:06.872869 14667 slave.cpp:4256] Forwarding the update TASK_FAILED (UUID: fd49de4a-a6dc-4cc2-bbad-c7383ebffb34) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 to master@172.31.1.93:5050 I0522 07:10:06.872970 14667 slave.cpp:4166] Sending acknowledgement for status update TASK_FAILED (UUID: fd49de4a-a6dc-4cc2-bbad-c7383ebffb34) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 to executor(1)@172.31.1.205:37547 I0522 07:10:06.886363 14662 status_update_manager.cpp:395] Received status update acknowledgement (UUID: fd49de4a-a6dc-4cc2-bbad-c7383ebffb34) for task 0 of framework 3b5640e6-c7e6-4333-8c1b-85742459a162-0001 Mesos stderr output: 17/05/22 07:03:05 INFO Executor: Starting executor ID 0 on host 52.42.183.66 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 WARN Utils: Service 'org.apache.spark.network.netty.NettyBlockTransferService' could not bind on port 0. Attempting port 1. 17/05/22 07:03:05 ERROR CoarseGrainedExecutorBackend: Executor self-exiting due to : Unable to create executor due to Cannot assign requested address: Service 'org.apache.spark.network.netty.NettyBlockTransferService' failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service 'org.apache.spark.network.netty.NettyBlockTransferService' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries. java.net.BindException: Cannot assign requested address: Service 'org.apache.spark.network.netty.NettyBlockTransferService' failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service 'org.apache.spark.network.netty.NettyBlockTransferService' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries. 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:223) at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:127) at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:501) at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1218) at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506) at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491) at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:965) at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:210) at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:353) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:408) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:455) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) at java.lang.Thread.run(Thread.java:748) 17/05/22 07:03:05 INFO DiskBlockManager: Shutdown hook called 17/05/22 07:03:05 INFO ShutdownHookManager: Shutdown hook called