title: Pyspark data frame to Hive Table
body: <p>How to store a Pyspark DataFrame  object to a hive table , "primary12345" is a hive table ?
  am using the below code <code>masterDataDf</code> is a data frame object </p>
  
  <pre><code>masterDataDf.write.saveAsTable("default.primary12345")
  </code></pre>
  
  <p>getting below error </p>
  
  <blockquote>
    <p>: java.lang.RuntimeException: Tables created with SQLContext must be TEMPORARY. Use a HiveContext instead.</p>
  </blockquote>