I have a directory containing ORC files. I am creating a DataFrame using the below code
var data = sqlContext.sql(\"SELECT * FROM orc.`/directory/containing/
Setting
sqlContext.setConf('spark.sql.hive.convertMetastoreOrc', 'false')
fixes this.