O'Reilly logo
  • Shuchi Mishra thinks this is interesting:

input = hiveCtx.jsonFile(inputFile)

From

Cover of Learning Spark
  • 9. Spark SQL
  • from Learning Spark
  • by Matei Zaharia, Patrick Wendell, Andy Konwinski, Holden Karau
  • Publisher: O'Reilly Media, Inc.
  • Released: February 2015

Note

this syntax is outdated. Instead use below statement:

input = hiveCtx.read.json("/FileStore/tables/testweet.json")