hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim robertson <timrobertson...@gmail.com>
Subject Re: path problem with hbase
Date Mon, 27 Jul 2009 18:02:30 GMT
Add the hadoop.jar to the classpath when you are compiling and you should be ok.

javac -classpath ${HBASE_HOME}/hbase-${HBASE_VERSION}.jar:
${HADOOP_HOME}/hadoop-${HADOOP_VERSION}.jar -d test_classes...

The config you changed provides the paths at runtime, but not at compile time.

Cheers

Tim

On Mon, Jul 27, 2009 at 7:59 PM, Xine Jar<xinejar22@googlemail.com> wrote:
> Hallo I am running the hadoop version 0.19.1 on a cluster of 4 nodes. The
> hadoop is working fine.
> I have installed as well the hbase version 0.19.3 following the guideline in
> http://hadoop.apache.org/hbase/docs/r0.19.3/api/overview-summary.html. I
> managed to configure the hbase on the cluster and I could even create tables
> using the hbase shell.
>
> *I know that my problem resides in a path but I don't know how to correct it
> :**
> *I have copied the Java program MyClient.java from above mentioned link and
> tried to compile it from the hbase Master:
>
> pc72:~/Desktop/hbase-0.19.3 #
> javac -classpath ${HBASE_HOME}/hbase-${HBASE_VERSION}.jar -d test_classes
> MyClient.java
>
> *I got the following errors:*
> MyClient.java:9: package org.apache.hadoop.conf does not exist
> import org.apache.hadoop.conf.Configuration;
>                             ^
> MyClient.java:45: cannot access org.apache.hadoop.io.WritableComparable
> class file for org.apache.hadoop.io.WritableComparable not found
>    table.commit(batchUpdate);
>         ^
> 2 errors
>
> *What I did not forget to do*:
> I Fulfilled the two required steps:
>
>   - Add a pointer to your HADOOP_CONF_DIR to CLASSPATH in hbase-env.sh
>
>         My hbase-env.sh looks like this:
>
>          export JAVA_HOME="/usr/lib64/jvm/java"
>          export HBASE_HOME="/root/Desktop/hbase-0.19.3"
>          export HBASE_VERSION="0.19.3"
>          export HBASE_CLASSPATH="/root/Desktop/hadoop-0.19.1/conf"
>
>
>
>   - Add a copy of hadoop-site.xml to ${HBASE_HOME}/conf,
>
>      I have copied the file
>
>  *Am I compiling wrong?Can anyone tell me if I forgot a path somewhere? **
> **
> I appreciate any help.
>
>
> thank you*
>

Mime
View raw message