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*