Created 06-16-2017 09:56 AM
I have a hive table. I am reading it in spark. I want to use one column of dataset and lookup for same in HBase.
How to do it in Spark 2 ?
Note: using Java 8
Created 06-21-2017 01:09 PM
You can do it in several ways. The easiest one is to read the HBase table with Spark HBase connector (https://github.com/hortonworks-spark/shc) and to join the two dataframes. Another option is to map you dataframe and foreach line perform a Get request to HBase. Here you can find an example of performing a Get request to HBase via Java code.