java - Client able to connect to Hbase DB without including hbase-site.xml in classpath -
i using java client connect hbase db configured in standalone mode.its hbase-site.xml :
<configuration> <property> <name>hbase.rootdir</name> <value>file:///home/vimal/hbase/hbase</value> </property> <property> <name>hbase.zookeeper.property.datadir</name> <value>/home/vimal/hbase/zookeeper</value> </property> </configuration>
in client code, using htablepool instance of htable. works fine question havent included hbase-site.xml in classpath how client connects hbasedb. strange me. please here.
i don't see in hbase-site.xml
option directly related hbase connection. setup works based on default configuration common case.
hbase.rootdir
- related user 'home' dir on cluster (no relation connection).hbase.zookeeper.property.datadir
- @ not have direct relation hbase connection.
Comments
Post a Comment