HI,

    I added $HBASE_HOME/conf to the classpath. Even after that, the same
exceptions are coming. I added it to my ant file as follows

<property environment="env">
</property>

<target name="load-sample-data" depends="compile">
        <java classname="org.knoesis.reasoning.SampleDataWriter"
fork="true">
            <classpath>
                <dirset dir="${build}"></dirset>

                <fileset dir="${lib}">
                    <include name="*.jar"/>
                </fileset>
                <fileset dir="${env.HBASE_HOME}/conf"/>
            </classpath>
        </java>
    </target>

env property does take in System environment variables and I checked it
using echo of ant.
Would this not be sufficient to include hbase-site.xml in the classpath?

Regards,
Raghava.

On Tue, Jun 8, 2010 at 8:11 PM, Jonathan Gray <[email protected]> wrote:

> So you are running the insert from mapreduce and not a standalone client?
>  If so, then it should pick that up.  If not, then hadoop-env would need to
> be used by your client.
>
> Feel free to jump into #hbase on freenode irc if you want faster help
> (though I'm on my way out shortly).
>
> > -----Original Message-----
> > From: Raghava Mutharaju [mailto:[email protected]]
> > Sent: Tuesday, June 08, 2010 5:01 PM
> > To: [email protected]
> > Subject: Re: Zookeeper exception - ConnectionLoss for /hbase
> >
> > Will it do if $HBASE_HOME/conf (directory containing hbase-site.xml) is
> > in
> > HADOOP_CLASSPATH of hadoop-env.sh file??
> >
> > Regards,
> > Raghava.
> >
> > On Tue, Jun 8, 2010 at 7:51 PM, Jonathan Gray <[email protected]>
> > wrote:
> >
> > > Is the directory containing hbase-site.xml in the classpath of your
> > client?
> > >
> > > > -----Original Message-----
> > > > From: Raghava Mutharaju [mailto:[email protected]]
> > > > Sent: Tuesday, June 08, 2010 4:39 PM
> > > > To: [email protected]
> > > > Subject: Zookeeper exception - ConnectionLoss for /hbase
> > > >
> > > > Hi all,
> > > >
> > > >        I am using HBase API to insert data into a table on a
> > cluster. I
> > > > am
> > > > getting the following exception (full stack trace in pastebin, link
> > > > given
> > > > below).
> > > >
> > > > [java] 10/06/08 05:02:15 WARN zookeeper.ZooKeeperWrapper: Failed to
> > > > create
> > > > /hbase -- check quorum servers, currently=localhost:2181
> > > > [java]
> > org.apache.zookeeper.KeeperException$ConnectionLossException:
> > > > KeeperErrorCode = ConnectionLoss for /hbase
> > > >
> > > > http://pastebin.com/tuwd0dgb
> > > >
> > > >
> > > > Looks like it is considering localhost as the ZooKeeper server. But
> > I
> > > > did
> > > > give 3 comma separated machine names for hbase.zookeeper.quorum
> > > > property in
> > > > hbase-site.xml. Am I missing some other setting?
> > > >
> > > > Thank you.
> > > >
> > > > Regards,
> > > > Raghava.
> > >
>

Reply via email to