hi , at first u should add the configure files in hbase to ur HBaseConfiguration
like this
conf.addResource("/hbase-site.xml");
and the file in ur hbase conf path.
if u change ur hbase conf ,just change it.2009/10/27, Liu Xianglong <[email protected]>: > Now, I can run my program correctly if I add sentence > "config.set("hbase.master","<hmaster IP>:60000")", otherwise it will report > the error I mentioned in last emails. So what do you think about the > problem? Should I change some configuration? Now I do not add "hbase.master" > in hbase-site for full-distributed mode. > -------------------------------------------------- > From: "Tatsuya Kawano" <[email protected]> > Sent: Tuesday, October 27, 2009 9:03 AM > To: <[email protected]>; <[email protected]> > Subject: Re: How to run java program > >> Hi Liu, >> >> You didn't receive any email by some reason? >> We have been trying to answer your question for a week. >> >> http://www.nabble.com/Qustion-about-HBase-error-td25969212.html >> http://www.nabble.com/java-api-error%3A-connection-to-HMaster-td25976824.html >> http://www.nabble.com/How-to-run-java-program-td26058149.html >> >> >> So why don't you start to read above answers? >> >> Thanks, >> >> -- >> Tatsuya Kawano (Mr.) >> Tokyo, Japan >> >> >> >> 2009/10/27 Liu Xianglong <[email protected]>: >>> would someone can answer my question? thanks a lot! >>> >>> -------------------------------------------------- >>> From: "Liu Xianglong" <[email protected]> >>> Sent: Monday, October 26, 2009 7:36 PM >>> To: <[email protected]> >>> Subject: How to run java program >>> >>>> Hi, everyone. I am using HBase Java API to retrieve data in HTable. Now >>>> I >>>> run my java program in HMaster node, but I am wondering whether there >>>> are >>>> other ways to run java program, or need I copy my java program into >>>> server >>>> every time I want to run them? >>>> >>>> Thanks! >>>> >>>> >>>> Best Wishes! >>>> _____________________________________________________________ >>>> >>>> 刘祥龙 Liu Xianglong >> >
