Skip to content

Instantly share code, notes, and snippets.

@vidma
Created October 10, 2016 10:34
Show Gist options
  • Save vidma/1da51beddd6e2503420adebace3e2975 to your computer and use it in GitHub Desktop.
Save vidma/1da51beddd6e2503420adebace3e2975 to your computer and use it in GitHub Desktop.
import org.apache.spark.sql.{DataFrame, SQLContext}
import org.apache.spark.sql.hive.HiveContext
val sqlCtx: SQLContext = new HiveContext(sc)
sqlCtx.sql("select 1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment