Skip to content

Instantly share code, notes, and snippets.

@pomadchin
pomadchin / s3sample.scala
Created May 10, 2019 00:10
Spark S3 credentials tip
import geotrellis.spark.io.hadoop._
import geotrellis.spark.util._
import org.apache.hadoop.fs.FileSystem
import org.apache.hadoop.fs.FileUtil
import org.apache.hadoop.fs.Path
import org.apache.hadoop.conf.Configuration
import org.apache.spark._
import org.apache.spark.sql._