title: Convert JavaPairRDD<ImmutableBytesWritable, Result> to JavaRDD<String>
body: <p>I am trying to read the data from HBase using Apache Spark. I want to only scan one specific column. I am creating an RDD of my HBase data like below</p>
  
  <pre><code>SparkConf sparkConf = new SparkConf().setAppName("HBaseRead").setMaster("local[2]");
  JavaSparkContext sc = new JavaSparkContext(sparkConf);
  Configuration conf = HBaseConfiguration.create();
  conf.set("hbase.zookeeper.quorum", "localhost:2181");
  
  String tableName = "myTable";
  
  conf.set(TableInputFormat.INPUT_TABLE, tableName);
  conf.set(TableInputFormat.SCAN_COLUMN_FAMILY, "myCol");
  
  
   JavaPairRDD&lt;ImmutableBytesWritable, Result&gt; hBaseRDD = sc.newAPIHadoopRDD(conf, TableInputFormat.class,
          ImmutableBytesWritable.class, Result.class);
  </code></pre>
  
  <p>Here is where I want to convert the <code>JavaPairRDD</code> to <code>JavaRDD</code> of string.</p>
  
  <pre><code>JavaRDD&lt;String&gt; rdd = ...
  </code></pre>
  
  <p>How can I achieve this? </p>