title: Scala_Spark_DataFrame using Future method
body: <p>I have to solve a scenario in which I am reading the <code>HiveContext</code> as <code>Future</code> using Scala. But I am unable to print the returned dataframe.</p>
  
  <p>My code: </p>
  
  <pre><code>val f: Future[DataFrame] = Future{hive.sql("select * from test1.emp")}
  </code></pre>
  
  <p>How to get the <code>DataFrame</code> from the <code>Future[DataFrame]</code> object?</p>