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