public final class HadoopUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeAtShutdown(Closeable closeable)
Adds a shutdown hook that tries to call
Closeable.close() on the given argument
at JVM shutdown. |
public static void closeAtShutdown(Closeable closeable)
Closeable.close() on the given argument
at JVM shutdown. This integrates with Hadoop's ShutdownHookManager in order to
better interact with Spark's usage of the same.closeable - thing to closeCopyright © 2014–2018. All rights reserved.