Hi, On Tue, Oct 27, 2009 at 10:06 AM, Liu Xianglong <[email protected]> wrote: > Sorry about that I haven't receive any reply. Thanks for you help, I will > read them.
That's okay. You can check the mailing list archive if this happens again: http://www.nabble.com/HBase-User-f34655.html So, I'm a bit late to reply, but you have found a way to get your program working; that's great! As for "hbase-site.xml", please try what 梁景明 said. (I'm forwarding the email just for sure.) Also, are you running HBase 0.19? I would suggest to move to HBase 0.20.1, because there are lots of improvements in HBase 0.20. When you use HBase 0.20.x, you no longer use "hbase.master", but "hbase.zookeeper.quorum", so update your "hbase-site.xml". Take a look at "hbase-default.xml", it has all the default properties including "hbase.zookeeper.quorum". Thanks, Tatsuya -- Tatsuya Kawano (Mr.) Tokyo, Japan On Tue, Oct 27, 2009 at 10:57 AM, 梁景明 <[email protected]> wrote: > 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 >>> >> >
