Skip to content

Instantly share code, notes, and snippets.

View ArtemKoval's full-sized avatar

Artem Koval ArtemKoval

View GitHub Profile
@ArtemKoval
ArtemKoval / es-spark
Last active June 20, 2018 05:12
Elasticsearch + Spark
import org.apache.spark.{SparkConf, SparkContext}
import org.elasticsearch.spark._
object EsSpark {
def main(args: Array[String]): Unit = {
val conf = new SparkConf().setAppName("es-spark").setMaster("local[*]")
conf.set("es.index.auto.create", "true")
conf.set("es.nodes", "amazonaws.com")
conf.set("es.port", "443")
conf.set("es.nodes.wan.only", "true")