Created
November 18, 2015 21:52
-
-
Save tomquisel/5cb3278f792f591636e9 to your computer and use it in GitHub Desktop.
Elasticsearch -> Spark dataframe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyspark.sql import SQLContext | |
sqlContext = SQLContext(sc) | |
df = sqlContext.read.format("org.elasticsearch.spark.sql").load("index/type") | |
df.printSchema() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment