title: Using pyspark to connect to hive tables
body: <p>I am trying to query a Hive table from pyspark.</p>
  
  <p>I am using the below statements:</p>
  
  <pre><code>from pyspark.sql import HiveContext    
  HiveContext(sc).sql('from `dbname.tableName` select `*`')
  </code></pre>
  
  <p>I am very new to hadoop systems.
  Need to understand what is the correct way to bring some data from a hive table and storing it into a dataframe to further write a program.</p>