Step 11 - Stopping the Spark session and H2O context

Finally, stop the Spark session and H2O context. The following stop() method invocation will shut down the H2O context and Spark cluster, respectively:

h2oContext.stop(stopSparkContext = true)
spark.stop()

The first one, especially, is more important, otherwise it sometimes does not stop the H2O flow but still holds the computing resources.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset