title: How to create an RDD directly from Hive table?
body: <p>I am learning spark and creating rdd using the SparkContext object and using some local files, s3 and hdfs as follows:</p>
  
  <pre><code>val lines = sc.textFile("file://../kv/mydata.log")
  
  val lines = sc.textFile("s3n://../kv/mydata.log")
  
  val lines = sc.textFile("hdfs://../kv/mydata.log")
  </code></pre>
  
  <p>Now i have some data in Hive tables. Is it possible to load hive table's directly and use that data as an RDD?</p>