hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niv Mizrahi <n...@taykey.com>
Subject Re: where does hbase expect hbase-default.xml in webapp inside a servlet container ?
Date Sun, 22 Jan 2012 12:17:05 GMT
hbase-site.xml should be include in
some_war/WEB-INF/classes/

and all relevant jars should be included in
some_war/WEB-INF/lib/

Niv

On Sun, Jan 22, 2012 at 2:49 AM, kim young ill <khiemu@googlemail.com>wrote:

> hi,
> i try to use hbase 0.90.5 as db-backend to store data from a servlet. i
> created the table manually via hbase shell, but call Configuration config =
> HBaseConfiguration.create(); from servlet fails :
>
> java.lang.RuntimeException: hbase-default.xml file seems to be for and old
> version of HBase (null), this version is 0.90.5
>    at
>
> org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:66)
>    at
>
> org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:89)
>    at
>
> org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:100)
>
>
> hbase-default.xml  is included inside hbase.jar, the .war package include
> all needed jars (zookeeper, hadoop....). i tried also to put this inside
> lib/  of the webapp but without success ?
>
>
> did i miss something ?
>
> thanx
>



-- 
*Niv Mizrahi*
Taykey | www.taykey.com

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