You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by "yoav.morag" <yo...@corrigon.com> on 2008/08/12 08:56:24 UTC
newbie problems initializing hbase from java
hi all -
I'm a new (would be) user ,yet I already have a question... it is probably
pretty silly, but I couldn't find anything in the FAQ.
Wen trying to run the unit tests for 0.2.0 I get the following error
:java.io.FileNotFoundException:
file:/home/yoav/workspace/hbase-0.2.0/bin/webapps/dfs
I have notices in the build.xml a comment saying it may have to do with jar
ordering. when I run my own tests, I get an
java.lang.ExceptionInInitializerError after calling HBaseConfiguration(),
which I guess has something to do with available native libraries / jars too
any suggestions ?
--
View this message in context: http://www.nabble.com/newbie-problems-initializing-hbase-from-java-tp18939004p18939004.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: newbie problems initializing hbase from java
Posted by stack <st...@duboce.net>.
yoav.morag wrote:
> to summarize the problem :
> I recompiled hbase with JDK 6.0. the conflict is probably with the hadoop
> 0.17.1 (jdk 5.0) jars that are supplied with
> hbase.
>
>
Jars compiled w/ 1.5 should run w/o issue on a 1.6 JVM. Its if you try
to go the other way round that you'll have issue.
>> yoav.morag wrote:
>>
>>> hi all -
>>> I'm a new (would be) user ,yet I already have a question... it is
>>> probably
>>> pretty silly, but I couldn't find anything in the FAQ.
>>>
>>> Wen trying to run the unit tests for 0.2.0 I get the following error
>>> :java.io.FileNotFoundException:
>>> file:/home/yoav/workspace/hbase-0.2.0/bin/webapps/dfs
>>>
>>>
>> What is your operating system? What is your JVM? Did you do 'ant clean
>> jar test'?
>>
Thinking more on this, are you doing this up in eclipse? If so, order
of items on the CLASSPATH is important (Will be less important after
HBASE-785 goes in). Here's my eclipse .classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="src" path="src/test"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/commons-cli-2.0-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="lib/commons-collections-3.2.jar"/>
<classpathentry kind="lib" path="lib/commons-httpclient-3.0.1.jar"/>
<classpathentry kind="lib" path="lib/commons-logging-1.0.4.jar"/>
<classpathentry kind="lib" path="lib/commons-logging-api-1.0.4.jar"/>
<classpathentry kind="lib" path="lib/commons-math-1.1.jar"/>
<classpathentry kind="lib" path="lib/hadoop-0.17.1-core.jar"/>
<classpathentry kind="lib" path="lib/hadoop-0.17.1-test.jar"/>
<classpathentry kind="lib" path="lib/jetty-5.1.4.jar"/>
<classpathentry kind="lib" path="lib/jruby-complete-1.1.2.jar"/>
<classpathentry kind="lib" path="lib/junit-3.8.1.jar"/>
<classpathentry kind="lib" path="lib/libthrift-r746.jar"/>
<classpathentry kind="lib" path="lib/log4j-1.2.13.jar"/>
<classpathentry kind="lib" path="lib/lucene-core-2.2.0.jar"/>
<classpathentry kind="lib" path="lib/servlet-api.jar"/>
<classpathentry kind="lib" path="lib/xmlenc-0.52.jar"/>
<classpathentry kind="lib" path="lib/jetty-ext/commons-el.jar"/>
<classpathentry kind="lib" path="lib/jetty-ext/jasper-compiler.jar"/>
<classpathentry kind="lib" path="lib/jetty-ext/jasper-runtime.jar"/>
<classpathentry kind="lib" path="lib/jetty-ext/jsp-api.jar"/>
<classpathentry kind="lib" path="conf"/>
<classpathentry kind="output" path="eclipse"/>
</classpath>
St.Ack
Re: newbie problems initializing hbase from java
Posted by "yoav.morag" <yo...@corrigon.com>.
to summarize the problem :
I recompiled hbase with JDK 6.0. the conflict is probably with the hadoop
0.17.1 (jdk 5.0) jars that are supplied with
hbase.
stack-3 wrote:
>
> yoav.morag wrote:
>> hi all -
>> I'm a new (would be) user ,yet I already have a question... it is
>> probably
>> pretty silly, but I couldn't find anything in the FAQ.
>>
>> Wen trying to run the unit tests for 0.2.0 I get the following error
>> :java.io.FileNotFoundException:
>> file:/home/yoav/workspace/hbase-0.2.0/bin/webapps/dfs
>>
>
> What is your operating system? What is your JVM? Did you do 'ant clean
> jar test'?
>
>> I have notices in the build.xml a comment saying it may have to do with
>> jar
>> ordering. when I run my own tests, I get an
>> java.lang.ExceptionInInitializerError after calling HBaseConfiguration(),
>> which I guess has something to do with available native libraries / jars
>> too
>>
>
> Can I see the full stacktrace?
>
> Thanks,
> St.Ack
>
>
--
View this message in context: http://www.nabble.com/Re%3A-newbie-problems-initializing-hbase-from-java-tp18948290p18980730.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: newbie problems initializing hbase from java
Posted by stack <st...@duboce.net>.
yoav.morag wrote:
> hi all -
> I'm a new (would be) user ,yet I already have a question... it is probably
> pretty silly, but I couldn't find anything in the FAQ.
>
> Wen trying to run the unit tests for 0.2.0 I get the following error
> :java.io.FileNotFoundException:
> file:/home/yoav/workspace/hbase-0.2.0/bin/webapps/dfs
>
What is your operating system? What is your JVM? Did you do 'ant clean
jar test'?
> I have notices in the build.xml a comment saying it may have to do with jar
> ordering. when I run my own tests, I get an
> java.lang.ExceptionInInitializerError after calling HBaseConfiguration(),
> which I guess has something to do with available native libraries / jars too
>
Can I see the full stacktrace?
Thanks,
St.Ack