title: Spark submit with oozie
body: <p>I have written a spark code - </p>
  
  <pre><code>customDF.registerTempTable("customTable")
  var query = "select date, id ts,errorode from customTable"
  val finalCustomDF = hiveContext.sql(query)     
  finalCustomDF.write.format("com.databricks.spark.csv").save("/user/oozie/data")
  </code></pre>
  
  <p>When i run this code using spark submit, it runs fine but when i run it using oozie coordinator. I get following exception.</p>
  
  <pre><code>User class threw exception: org.apache.spark.sql.AnalysisException: character '&lt;EOF&gt;' not supported here; line 1 pos 111 
  </code></pre>
  
  <p>I have tried reading data from existing hive table it works but issue is with customTable.</p>