hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From charles du <taiping...@gmail.com>
Subject Re: Hbase client program error
Date Tue, 01 Sep 2009 00:35:26 GMT
Thanks. It solved my problem.


On Mon, Aug 31, 2009 at 5:23 PM, Jonathan Gray <jlist@streamy.com> wrote:

> Yes.  You need to have the directory which contains hbase-site.xml in the
> classpath of your java program.
>
>
> charles du wrote:
>
>> HI Erik:
>>
>> Thanks for your response. I set up hbase.rootdir to a directory in a
>> hadoop
>> file system in hbase-site.xml, and setup an environmental variable
>> HBASE_HOME to the base dir of my installation.
>>
>> In my case, "hbase shell" works fine, and I can create table, insert/scan
>> rows in tables. However, my java app failed with this "null pointer "
>> message. Do I need specify a environmental variable somewhere to let my
>> app
>> know where to find the conf file?
>>
>> Thanks.
>>
>> tp
>>
>>
>> On Mon, Aug 31, 2009 at 5:04 PM, Erik Holstad <erikholstad@gmail.com>
>> wrote:
>>
>>  Hi Charles!
>>> Looking at the stack trace and going to
>>>
>>>
>>> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:89),
>>> it seems like
>>> the conf file you are using does not set the hbase.rootdir as described
>>> in
>>> http://hadoop.apache.org/hbase/docs/current/api/index.html, can that be
>>> the
>>> case?
>>>
>>> Regards Erik
>>>
>>>
>>
>>
>>


-- 
tp

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message