title: How to connect PySpark to Bigquery
body: <p>I am trying to read a table form BigQuery using PySpark.</p>
  
  <p>I have tried the following</p>
  
  <pre><code>table = 'my-project-id.project-dataset.test_table_spark'
  df = spark.read.format('bigquery').option('table', table).load()
  </code></pre>
  
  <p>However, I am getting this error </p>
  
  <pre><code>: java.lang.ClassNotFoundException: Failed to find data source: bigquery. Please find packages at http://spark.apache.org/third-party-projects.html
  </code></pre>
  
  <p>How can I read the bigQuery table from pySpark (at the moment I'm using python2)</p>