Apache Spark Certification Practice Test

Question: 1 / 400

What happens to currently running apps if the client disconnects, assuming no zookeeper?

No impact on running apps

If the client disconnects and there is no ZooKeeper in place to manage the cluster state, the currently running applications in Spark will continue to execute without any disruption. This is because Spark maintains its own internal state and resource management via the cluster manager (like Standalone, Mesos, or YARN).

When a client submits a Spark job, the execution of that job is handled by the driver program, which serves to coordinate the job. Once the job is running, it doesn’t require an active connection to the client anymore. The job will keep running to completion, and any results can be retrieved later, once the client reconnects or the application finishes executing.

In contrast, if there were a more complex setup, like using ZooKeeper for managing the state or if the specifics of the cluster manager dictated otherwise, there could be scenarios where connection loss could affect running applications. However, in the absence of such infrastructure, the independence of the application from the client connection is a critical feature of Spark's execution model.

Get further explanation with Examzify DeepDiveBeta

All running apps are terminated

Running apps pause

Running apps resume automatically

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy