Skip to content

Instantly share code, notes, and snippets.

@cjun5
Created September 3, 2021 12:59
hbase connection init
Configuration conf = HBaseConfiguration.create();
conf.set("hbase.zookeeper.property.clientPort", "2181");
conf.set("hbase.zookeeper.quorum", "127.0.0.1");
conf.set("zookeeper.znode.parent", "/hbase");
Connection conn = ConnectionFactory.createConnection(conf);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment