All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hindog.grid.spark.shell.SparkShutdownHook.scala Maven / Gradle / Ivy

There is a newer version: 2.0.7
Show newest version
package com.hindog.grid.spark.shell

import org.apache.spark.sql.SparkSession

/*
 *    __   _         __         
 *   / /  (_)__  ___/ /__  ____
 *  / _ \/ / _ \/ _  / _ \/ _  /
 * /_//_/_/_//_/\_,_/\___/\_, / 
 *                       /___/
 */
class SparkShutdownHook(spark: SparkSession) extends Thread {
  override def run(): Unit = spark.stop()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy