Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> RowCounter ClassNotFoundException: com.google.common.base.Preconditions


Copy link to this message
-
Re: RowCounter ClassNotFoundException: com.google.common.base.Preconditions
Hey, Seems that it's the right issue. I reverted back to previous Guava
version and this seems to be fixed.

But I found something else too

I had an old "target" directory from a previous HBase version in my HBase
directory and that caused some issues with the last shell.

It seems to have fixed my rowcounter too!!! Will see if it fixes also my
AbstractMethodErrorexception issue.

Thanks!

JM
2013/12/25 Ted Yu <[EMAIL PROTECTED]>

> This is related:
> HBASE-10174 Back port HBASE-9667 'NullOutputStream removed from Guava 15'
> to 0.94
>
> Cheers
>
>
> On Wed, Dec 25, 2013 at 7:55 AM, Jean-Marc Spaggiari <
> [EMAIL PROTECTED]> wrote:
>
> > I also got those one in the logs when manually moving a region:
> > Caused by: java.lang.ClassNotFoundException:
> > com.google.common.io.NullOutputStream
> >     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> >     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> >     at java.security.AccessController.doPrivileged(Native Method)
> >     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> >     ... 18 more
> >
> >
> > I have extracted 0.94.15 from the JARs. I'm not getting where all of this
> > is coming from... I will look at that today...
> >
> >
> > 2013/12/23 lars hofhansl <[EMAIL PROTECTED]>
> >
> > > I'd bet this is the same issue that got you the strange
> > > AbstractMethodErrorexception you've seen before.
> > >
> > > Checking the code, we do not explicitly set
> > > com.google.common.base.Preconditions as dependency, and we probably
> > should,
> > > but we  com.google.common.base.Function, which is in the same jar.
> > >
> > > -- Lars
> > >
> > >
> > >
> > > ________________________________
> > >  From: Jean-Marc Spaggiari <[EMAIL PROTECTED]>
> > > To: user <[EMAIL PROTECTED]>
> > > Sent: Monday, December 23, 2013 6:06 PM
> > > Subject: Re: RowCounter ClassNotFoundException:
> > > com.google.common.base.Preconditions
> > >
> > >
> > > Did some investigations. Strange.
> > >
> > > ClassLoader parent = Classes.class.getClassLoader();
> > >
> > > Returns null....
> > >
> > > Can this be related to the JDK I use? (1.7.0_45)
> > >
> > >
> > >
> > > 2013/12/23 Jean-Marc Spaggiari <[EMAIL PROTECTED]>
> > >
> > > > I'm running HBase 0.94.15.
> > > >
> > > > time /home/hadoop/hadoop-1.2.1/bin/hadoop jar
> > > > /home/hbase/hbase-0.94.3/hbase-0.94.15.jar rowcounter
> > > > -Dmapred.map.tasks.speculative.execution=false
> > > > -Dhbase.client.scanner.caching=100 page_proposed
> > > >
> > > > I also tried to copy the guava jar  into hadoop lib directory with no
> > > > success.
> > > >
> > > > I also tried with:
> > > > export HADOOP_CLASSPATH=`/home/hbase/hbase-0.94.3/bin/hbase
> > > > classpath`:`/home/hadoop/hadoop-1.2.1/bin/hadoop classpath`:.
> > > >
> > > > Same result.
> > > >
> > > > My folder is called 0.94.3 because I never changed its name into my
> > > > scripts, but it's 0.94.15 inside of it...
> > > >
> > > > JM
> > > >
> > > >
> > > > 2013/12/23 Ted Yu <[EMAIL PROTECTED]>
> > > >
> > > >> Which version of HBase do you use ?
> > > >>
> > > >> Can you show us the command line for RowCounter ?
> > > >>
> > > >> Thanks
> > > >>
> > > >>
> > > >> On Mon, Dec 23, 2013 at 8:11 AM, Jean-Marc Spaggiari <
> > > >> [EMAIL PROTECTED]> wrote:
> > > >>
> > > >> > Any idea why I'm getting this?
> > > >> >
> > > >> > Error: java.lang.ClassNotFoundException:
> > > >> > com.google.common.base.Preconditions
> > > >> >     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> > > >> >     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> > > >> >     at java.security.AccessController.doPrivileged(Native Method)
> > > >> >     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> > > >> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:423)