hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: RowCounter ClassNotFoundException: com.google.common.base.Preconditions
Date Mon, 23 Dec 2013 16:17:26 GMT
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 <
jean-marc@spaggiari.org> 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)
>     at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:722)
>     at org.apache.hadoop.mapred.MapTask.run(MapTask.java:364)
>     at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at javax.security.auth.Subject.doAs(Subject.java:415)
>     at
>
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
>     at org.apache.hadoop.mapred.Child.main(Child.java:249)
>
>
> Initially I tought it was because of the guava lib. So I ugraded it to 14,
> same result. I tought then it was because I was using a very old 1.0.3
> hadoop version so I upgraded it to 1.2.1 (went very well, pretty simple).
> Still same issue. (Yes I copied hadoop jar to hbase lib).
>
> This missing class is into guava 11.0.2 jar. My own MR jobs are running
> well, HBase is running well, et. Just RowCounter is not working.
>
> Any idea?
>
> Thanks,
>
> JM
>

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