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

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


+
Jean-Marc Spaggiari 2013-12-23, 16:11
+
Ted Yu 2013-12-23, 16:17
+
Jean-Marc Spaggiari 2013-12-23, 16:22
+
Jean-Marc Spaggiari 2013-12-24, 02:06
+
lars hofhansl 2013-12-24, 04:48
Copy link to this message
-
Re: RowCounter ClassNotFoundException: com.google.common.base.Preconditions
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)
> >> >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> >> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> >> >     at
> >> >
> >> >
> >>
> org.apache.hadoop.hbase.util.ClassLoaderBase.<init>(ClassLoaderBase.java:58)
> >> >     at
> >> >
> >> >
> >>
> org.apache.hadoop.hbase.util.DynamicClassLoader.<init>(DynamicClassLoader.java:87)
> >> >     at org.apache.hadoop.hbase.util.Classes.<clinit>(Classes.java:41)
> >> >     at org.apache.hadoop.hbase.client.Scan.readFields(Scan.java:624)
> >> >     at
> >> >
> >> >
> >>
> org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil.convertStringToScan(TableMapReduceUtil.java:379)
> >> >     at
> >> >
> >> >
> >>
> org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:107)
> >> >     at
> >> >
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
> >> >     at
> >> >
> >> >
> >>
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
+
Ted Yu 2013-12-25, 16:18
+
Jean-Marc Spaggiari 2013-12-25, 17:10