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

geotrellis.spark.etl.hadoop.HadoopOutput.scala Maven / Gradle / Ivy

Go to download

GeoTrellis is an open source geographic data processing engine for high performance applications.

The newest version!
package geotrellis.spark.etl.hadoop

import geotrellis.spark.etl.OutputPlugin
import geotrellis.spark.io.hadoop._

import org.apache.hadoop.fs.Path
import org.apache.spark.SparkConf
import org.apache.spark.deploy.SparkHadoopUtil

trait HadoopOutput[K, V, M] extends OutputPlugin[K, V, M] {
  val name = "hadoop"
  val requiredKeys = Array("path")

  //This should be a safe way to get a hadoop configuration that includes all the environment changes from spark
  def attributes(props: Map[String, String]) =
    HadoopAttributeStore(props("path"), SparkHadoopUtil.get.newConfiguration(new SparkConf()))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy