title: You must build Spark with Hive. Export 'SPARK_HIVE=true'
body: <p>I'm trying to run a notebook on Analytics for Apache Spark running on Bluemix, but I hit the following error:</p>
  
  <pre><code>Exception: ("You must build Spark with Hive. Export 'SPARK_HIVE=true' and 
  run build/sbt assembly", Py4JJavaError(u'An error occurred while calling 
  None.org.apache.spark.sql.hive.HiveContext.\n', JavaObject id=o38))
  </code></pre>
  
  <p>The error is intermittent - it doesn't always happen.  The line of code in question is:</p>
  
  <pre><code>df = sqlContext.read.format('jdbc').options(
              url=url, 
              driver='com.ibm.db2.jcc.DB2Driver', 
              dbtable='SAMPLE.ASSETDATA'
          ).load()
  </code></pre>
  
  <p>There are a few similar questions on stackoverflow, but they aren't asking about the spark service on bluemix.</p>