hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 张铎 <palomino...@gmail.com>
Subject Re: com/google/protobuf/Message not found Exception
Date Fri, 06 Feb 2015 01:55:35 GMT
I'm not familiar with Karaf so I do not know what is a "feature" in Karaf.

But hbase-client depends on many other jars, so usually you need to deploy
them all, not only the hbase-client.jar and hadoop.jar. And for java
programs, some people use maven-shade-plugin to pack a big jar with all
dependencies in it and deploy it.

Hope this could help.

2015-02-06 8:38 GMT+08:00 <Yuling_C@dell.com>:

> Dell Customer Communication
>
> Hi All,
>
> I'm getting   NoClassFound exception for /com/google/protobuf/Message
> while getting connection to HTable in HBase. I am running HBase server
> single node on a VM with HBaseClient running on OSGI Karaf. I'm using the
> HBase 0.94.15 and Hadoop 1.0.4. I wrapped these two jars as feature and
> deployed on Karaf.
>
> Any idea why this exception is thrown on Karaf? Which jar HBase 0.94.15 is
> using for this class? Do I need to deploy anything extra on Karaf?
>
> Thanks,
>
> YuLing
>
> Caused by: java.lang.ClassNotFoundException: com.google.protobuf.Message
>
>         at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader
> .java:501)
>
>         at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:42
> 1)
>
>         at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:41
> 2)
>
>         at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultCl
> assLoader.java:107)
>
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>
>         ... 64 more
>
>
>

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