Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 Mapreduce 将数据加载到 Hbase,我需要如何从 Hbase 开始,将 Hbase 与 Java 集成是否需要使用任何 jar 文件。
要从 java 访问 Hbase,请使用以下代码:
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);