on MR jobs I do this
conf = new HBaseConfiguration();
conf.set("hbase.master","123.123.123.123:6000");
but I do this in a JobConf
I thank the HBaseConfiguration() site-hbase.xml file for you
Billy
"Yossi Ittach" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
Hi all
I want to specify in the code which hbase-site.xml file will be used as a
source for configuration. I tried to use addResources() but it doesn't
work
- the path is added , but nothing happends - it's automatically goes for
the
defaults (127.0.0.1:6000) . Can you please advise?
This is the code:
conf = new HBaseConfiguration();
Path sitePath = new Path("util/hbase-site.xml");
Path defualtPath = new Path("util/hbase-default.xml");
conf.addResource(sitePath);
conf.addResource(defualtPath);
try {
admin = new HBaseAdmin(conf);
} catch (MasterNotRunningException e) {
e.printStackTrace();
}
Thanks
Vale et me ama
Yossi