I'd guess computer A is not finding your customizations of hbase.master in your hbase-site.xml and instead its picking up the default setting for hbase.master (localhost). You could try manually setting computerB as hbase.master on the HBaseConfiguration you create to pass HTable/HBaseAdmin in your webapp context to verify this is indeed the case.

Where is your hbase-site.xml currently? Is it bundled into your webapp? If so, at what location?

St.Ack

ma qiang wrote:
Hi,
   Thank you for your reply so much!
   I meet this problem. My program which read data from hbase run on
computer A, and the hbase deployed on computer B.
whatever I set the path in the HBaseConfiguration object in my
program, the program always read data from local computer A not to
read data from computer B. Can you tell me why and how to resolve this
problem ?
    Thank you !



On Sat, May 24, 2008 at 9:27 AM, Jean-Daniel Cryans <[EMAIL PROTECTED]> wrote:
Hi maqiang,

When you're running your webapp, using client's classes like HTable will
require you to have a HBaseConfiguration object. When instantiated, it
expects you to have hbase-site.xml in your path and then reads from it to
obtain the master's adress and thus you can get your data.

Jean-Daniel

2008/5/23 ma qiang <[EMAIL PROTECTED]>:

Hi all,
  In my web app based on Tomcat,  the server read data from HBase
then return these to client as a response. , Who can tell me how?
   Thank you very much!

Best wishes !
 maqiang


Reply via email to