Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Hbase through YARN

avatar
New Member

Hello Friends,

Is there a way to interact with Hbase using YARN ( I mean from YARN application) . I want to create a Hbase table insert some rows and delete it.

Best Regards,

Rohit Sureka

1 ACCEPTED SOLUTION

avatar
Master Mentor

You need to use hbase client api, it has changed a bit in HBase 1.x but the jist of it is the same https://www.slideshare.net/mobile/martyhall/hadoop-tutorial-hbase-part-3-java-client-api

It is only good for small number of mutations, when you want to use asynchronous and batch mutations go with MapReduce as Predrag noted or use BufferedMutator as an example https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/BufferedMutator.html

It is available in the examples of the HBase source code

View solution in original post

3 REPLIES 3

avatar
Master Guru

Hi @Rohit Sureka, and welcome to HCC! Yes, you can access HBase from almost any Yarn-running component like MapReduce, Hive, Pig, or Spark. Here are some links: Hive HBase integration, Spark on HBase, and HBase and MapReduce.

avatar
Master Mentor

You need to use hbase client api, it has changed a bit in HBase 1.x but the jist of it is the same https://www.slideshare.net/mobile/martyhall/hadoop-tutorial-hbase-part-3-java-client-api

It is only good for small number of mutations, when you want to use asynchronous and batch mutations go with MapReduce as Predrag noted or use BufferedMutator as an example https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/BufferedMutator.html

It is available in the examples of the HBase source code