Skip to content

Instantly share code, notes, and snippets.

@ebuildy
Created February 20, 2020 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebuildy/a0d244adaf39d5be3f8e1dbacdc5bd30 to your computer and use it in GitHub Desktop.
Save ebuildy/a0d244adaf39d5be3f8e1dbacdc5bd30 to your computer and use it in GitHub Desktop.
Read elasticsearch data
val df = sqlContext.read.format("es")
.option("es.nodes.wan.only", "true")
.option("es.mapping.date.rich", "false")
.option("es.read.field.exclude", "dimensions.geo_point")
.option("es.nodes", "conso-es:9200")
.load("clicks")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment