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/
If version upgrade is not an available option, quick fix could be to rewrite ORC file using PIG. That seems to work just fine.