简体   繁体   中英

Load data into Hbase

I need to load data in to Hbase using Mapreduce, How I need to start with Hbase, to integrate Hbase with Java do I need to use any jar file.

  1. What are the jar files Required For Hbase to integrate with MapReduce
  2. What are the APIs which I need to refer
  3. How to code in Java for MapReduce

To Access Hbase from java, use below code:

conf = new HBaseConfiguration();        
conf.set("hbase.zookeeper.quorum", "ip1,ip2,ip3");
conf.addResource(new Path("/etc/hbase/conf/hbase-site.xml"));
hbase = new HBaseAdmin(conf);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM