This is all in the documentation: http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/mapreduce/package-summary.html#classpath
J-D On Mon, Feb 14, 2011 at 3:00 AM, Hari Sreekumar <hsreeku...@clickable.com> wrote: > I have this entry in hadoop-env.sh > > export > HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:${HBASE_HOME}/hbase-0.20.6.jar:${HBASE_HOME}/hbase-0.20.6-test.jar:$HBASE_HOME/conf:$HBASE_HOME/lib/zookeeper-3.2.2.jar > > and I run jobs as $HADOOP_HOME/bin/hadoop jar <jarFile> .... > > But I have verified that it does not pick up the changes I make in > hbase-site.xml unless I have it is hadoop conf dir. Should I make any > changes in hbase-env.sh as well? > > Also, how can I run an MR job remotely? e.g can I run MR job from eclipse > from a remote machine, say, by putting the hadoop/hbase conf folder in > classpath? > > Thanks, > Hari > > On Mon, Feb 14, 2011 at 12:06 PM, 陈加俊 <cjjvict...@gmail.com> wrote: > >> If I have new jar builded by myselft,How should I extra Java CLASSPATH >> elements? >> >> On Sat, Feb 12, 2011 at 3:04 PM, Ryan Rawson <ryano...@gmail.com> wrote: >> >> > we include $HBASE_HOME/conf on the HADOOP_CLASSPATH in hadoop-env.sh. >> > >> > It goes like this: >> > >> > >> > export HBASE_HOME=/home/hadoop/hbase >> > JAR=`ls $HBASE_HOME/*.jar` >> > export HBASE_JAR=$JAR >> > >> > # Extra Java CLASSPATH elements. Optional. >> > export >> > >> HADOOP_CLASSPATH=$HBASE_HOME/conf:$HBASE_HOME/$HBASE_JAR:$HBASE_HOME/lib/zookeeper-3.3.2.jar:$HBASE_HOME/lib/guava-r06.jar >> > >> > at the top of hadoop-env.sh >> > >> > On Fri, Feb 11, 2011 at 11:01 PM, Hari Sreekumar >> > <hsreeku...@clickable.com> wrote: >> > > Sorry, it is an MR job, I am running hbase 0.20.6 on hadoop 0.20.2. >> > > >> > > hari >> > > >> > > On Sat, Feb 12, 2011 at 2:08 AM, Stack <st...@duboce.net> wrote: >> > > >> > >> What is the context? A MR job? 0.20.x HBase? >> > >> St.Ack >> > >> >> > >> On Fri, Feb 11, 2011 at 12:05 PM, Hari Sreekumar >> > >> <hsreeku...@clickable.com> wrote: >> > >> > Hi guys, >> > >> > >> > >> > I have $HBASE_HOME/conf on my hadoop classpath but still, my >> > >> hbase-site.xml >> > >> > doesn't get picked up from that location. It seems to work only if I >> > copy >> > >> my >> > >> > hbase-site.xml to the $HADOOP_HOME/conf directory. But having two >> > copies >> > >> of >> > >> > the xml file is becoming very messy and also this doesn't look like >> > the >> > >> > right way. Is there a better way to get this done? >> > >> > >> > >> > Thanks, >> > >> > Hari >> > >> > >> > >> >> > > >> > >> >> >> >> -- >> Thanks & Best regards >> jiajun >> >