How to take a range of elements from JavaPairRDD

60 views Asked by At

I am trying to get data from HBase using Spark.

JavaPairRDD<ImmutableBytesWritable, Result> javaPairRdd = 
sc.newAPIHadoopRDD(hbaseConf, 
TableInputFormat.class,ImmutableBytesWritable.class, Result.class);

But I need to get elements from a range. ex: 1000th record to 2000th record.

0

There are 0 answers