Thanks Todd, But this link is also based on scala, I was looking for some help with java Apis.
Thanks, Udbhav Agarwal From: Todd Nist [mailto:[email protected]] Sent: 12 March, 2015 5:28 PM To: Udbhav Agarwal Cc: Akhil Das; [email protected] Subject: Re: hbase sql query Have you considered using the spark-hbase-connector for this: https://github.com/nerdammer/spark-hbase-connector On Thu, Mar 12, 2015 at 5:19 AM, Udbhav Agarwal <[email protected]<mailto:[email protected]>> wrote: Thanks Akhil. Additionaly if we want to do sql query we need to create JavaPairRdd, then JavaRdd, then JavaSchemaRdd and then sqlContext.sql(sql query). Ryt ? Thanks, Udbhav Agarwal From: Akhil Das [mailto:[email protected]<mailto:[email protected]>] Sent: 12 March, 2015 11:43 AM To: Udbhav Agarwal Cc: [email protected]<mailto:[email protected]> Subject: Re: hbase sql query Like this? val hBaseRDD = sc.newAPIHadoopRDD(conf, classOf[TableInputFormat], classOf[org.apache.hadoop.hbase.io.ImmutableBytesWritable], classOf[org.apache.hadoop.hbase.client.Result]).cache() Here's a complete example<https://www.mapr.com/developercentral/code/loading-hbase-tables-spark#.VQEtqFR515Q>. Thanks Best Regards On Wed, Mar 11, 2015 at 4:46 PM, Udbhav Agarwal <[email protected]<mailto:[email protected]>> wrote: Hi, How can we simply cache hbase table and do sql query via java api in spark. Thanks, Udbhav Agarwal
