hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: hbase client and karaf
Date Wed, 28 Jan 2015 04:56:19 GMT
So you set thread context classloader as described in the blog ?

Can you look at /home/yuling_c/.m2/repository/org/apache/hbase to see if
any module is there ?

Pardon me, I am not familiar with Karaf feature descriptor.

Cheers

On Tue, Jan 27, 2015 at 4:05 PM, <Yuling_C@dell.com> wrote:

> Dell Customer Communication
> Hi Ted,
>
> Thanks for your reply...
>
> no I don't think so. I've cleaned up all the other versions in my
> development environment. My .m2 maven repository only contains one version
> of hbase jar. So, I don't believe I would have any other hbase jars in my
> environment...
>
> [yuling_c@ODLDev hbase]$ pwd
> /home/yuling_c/.m2/repository/org/apache/hbase/hbase
> [yuling_c@ODLDev hbase]$ ls
> 0.90.5
>
> I googled and found the following article. However, after following the
> instructions in that article, I still hit the same issue... I was wondering
> if you could help with some hint for debugging to see what went wrong?...
>
> http://iocanel.blogspot.com/2012/07/apache-karaf-meets-apache-hbase.html
>
>
> Thanks very much,
>
> YuLing
>
> -----Original Message-----
> From: Ted Yu [mailto:yuzhihong@gmail.com]
> Sent: Tuesday, January 27, 2015 3:50 PM
> To: dev@hbase.apache.org
> Cc: user-allow@hbase.apache.org
> Subject: Re: hbase client and karaf
>
> Looks like you are using HBase 0.90.5
>
> See if there is jar of other HBase release in the classpath.
>
> Cheers
>
> On Tue, Jan 27, 2015 at 1:52 PM, wrote:
>
> > Dell Customer Communication
> > Hi All,
> >
> > I'm trying to run hbase client in Karaf but kept getting version
> > mismatch
> > error:
> >
> > at
> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
> > at
> >
> com.sun.jmx.mbeanserver.MXBeanProxy$InvokeHandler.invoke(MXBeanProxy.java:150)
> > at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:167)
> > at
> >
> javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:252)
> > at com.sun.proxy.$Proxy14.commitConfig(Unknown Source)
> > at
> >
> org.opendaylight.controller.config.util.ConfigRegistryJMXClient.commitConfig(ConfigRegistryJMXClient.java:102)
> > at
> >
> org.opendaylight.controller.netconf.confignetconfconnector.transactions.TransactionProvider.commitTransaction(TransactionProvider.java:110)
> > at
> >
> org.opendaylight.controller.netconf.confignetconfconnector.operations.Commit.handleWithNoSubsequentOperations(Commit.java:54)
> > at
> >
> org.opendaylight.controller.netconf.util.mapping.AbstractLastNetconfOperation.handle(AbstractLastNetconfOperation.java:33)
> > at
> >
> org.opendaylight.controller.netconf.util.mapping.AbstractNetconfOperation.handle(AbstractNetconfOperation.java:100)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.sendRequestGetResponseCheckIsOK(ConfigPusherImpl.java:280)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.pushConfig(ConfigPusherImpl.java:239)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.pushConfigWithConflictingVersionRetries(ConfigPusherImpl.java:128)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.internalPushConfigs(ConfigPusherImpl.java:101)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.process(ConfigPusherImpl.java:76)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.osgi.ConfigPersisterActivator$InnerCustomizer$1.run(ConfigPersisterActivator.java:175)
> > at java.lang.Thread.run(Thread.java:745)
> > Caused by: java.lang.RuntimeException: hbase-default.xml file seems to
> > be for and old version of HBase (null), this version is 0.90.5
> > at
> >
> org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:66)
> > at
> >
> org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:89)
> > at
> >
> org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:100)
> > at
> > org.apache.hadoop.hbase.client.HConnectionManager.(HConnection
> > Manager.java:135) Basically what I did was to wrap an hbase feature
> > and install it from Karaf and then install my application feature that
> > contains hbase client on Karaf as well.
> >
> > However, I kept getting this version mismatch issue...any idea?
> >
> > Thanks very much,
> >
> > YuLing
> >
>

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