title: Spark: printing Hbase data and converting it into Dataframe
body: <p>I am having difficulty in playing with the data received from my Hbase table. I have a Hbase table <code>EMP_META: COLUMN_NAME,SALARY,DESIGNATION,BONUS</code> and I read it using below code:</p>
  
  <pre><code>def main(args: Array[String]): Unit = {
  val sc = new SparkContext("local", "hbase-test")
  println("Running Phoenix Context")
  val conf = HBaseConfiguration.create()
  conf.set(TableInputFormat.INPUT_TABLE, "EMP_META")
  val hBaseRDD = sc.newAPIHadoopRDD(conf, classOf[TableInputFormat], classOf[ImmutableBytesWritable], classOf[Result])
  println("--------------: "+hBaseRDD.first())
  }
  </code></pre>
  
  <p>However when I print it using the above print statement I get below output:</p>
  
  <pre><code>(65 6d 70 6c 6f 79 65 65,keyvalues={employee/0:COLUMN_NAME/1483975443911/Put/vlen=4/seqid=0, employee/0:DATA_TYPE/1483975443911/Put/vlen=7/seqid=0, employee/0:_0/1483975443911/Put/vlen=1/seqid=0})
  </code></pre>
  
  <p>Instead of simple data text row. I want to convert the output to a dataframe so that I can easily play with the data. Can someone please help me in this.
  Thanks</p>