hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vaibhav Puranik <vpura...@gmail.com>
Subject Re: Hadoop config file IOException
Date Sat, 28 Mar 2009 00:03:33 GMT
Andy,

Actually, it was my mistake. I had SLF4J in my class path and  commons
logging was using SLF4J logger.
It worked as soon as I used the right logger class.

Thanks for your help. I will explore how to run scripts with hbase as per
your suggestion.

Regards,
Vaibhav

On Fri, Mar 27, 2009 at 3:17 PM, Andrew Purtell <apurtell@apache.org> wrote:

>
> Hi Vaibhav,
>
> Does this work?
>
>  import org.apache.log4j.Level;
>  import org.apache.log4j.Logger;
>  // ...
>   Logger log = Logger.getLogger(<your main class>.class.getName());
>  log.setLevel(Level.WARN);
>
> ... where you make the appropriate substitution of course. :-)
> Works for me.
>
> Also, I always launch my client code using the appropriate launcher
> script. Doing so lessens the differences between my deployments and
> those of others who commonly do the same thing, which makes bug
> reporting smoother. So I copy my jars into hbase/lib and then do
>
>  hbase my.package.MyClass arg1 arg2 ... argn
>
> or
>
>  hbase-daemon.sh start my.package.MyClass arg1 arg2 ... argn
>
> as appropriate.
>
> Hope this helps,
>
>  - Andy
>
>
> --- On Fri, 3/27/09, Vaibhav Puranik <vpuranik@gmail.com> wrote:
>
> > From: Vaibhav Puranik <vpuranik@gmail.com>
> > Subject: Re: Hadoop config file IOException
> > To: hbase-user@hadoop.apache.org, apurtell@apache.org
> > Date: Friday, March 27, 2009, 11:02 AM
> > Hi Andy,
> >
> > I am trying to change it from the client code as I am not
> > executing my client using hadoop/bin/hadoop or
> > hbase/bin/hbase scripts.
> >
> > What logger should I use? using main, root and
> > "org.apache.hadoop.ipc.HBaseClass" or
> > 'org.apache.hadoop" doesn't  work.
> >
> > Regards,
> > Vaibhav
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message