hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Yulin...@DELL.com>
Subject RE: hbase client and karaf
Date Wed, 28 Jan 2015 05:55:16 GMT
Dell Customer Communication
Hi Ted,

I actually just passed this issue. I made two changes: one is to add hbase-default.xml to
my client jar, the other is to apply the thread context classloader to the HTable connection
as well. I'm not sure which one helped and will nail it down a bit later...anyways, now I
was able to insert rows into my hbase tables with a client running in karaf:)

Thanks very much,

YuLing

-----Original Message-----
From: Ted Yu [mailto:yuzhihong@gmail.com]
Sent: Tuesday, January 27, 2015 8:56 PM
To: dev@hbase.apache.org
Subject: Re: hbase client and karaf

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, 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.ht
> ml
>
>
> 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:80
> > 1)
> > at
> >
> com.sun.jmx.mbeanserver.MXBeanProxy$InvokeHandler.invoke(MXBeanProxy.j
> ava:150)
> > at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:167)
> > at
> >
> javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvoca
> tionHandler.java:252)
> > at com.sun.proxy.$Proxy14.commitConfig(Unknown Source) at
> >
> org.opendaylight.controller.config.util.ConfigRegistryJMXClient.commit
> Config(ConfigRegistryJMXClient.java:102)
> > at
> >
> org.opendaylight.controller.netconf.confignetconfconnector.transaction
> s.TransactionProvider.commitTransaction(TransactionProvider.java:110)
> > at
> >
> org.opendaylight.controller.netconf.confignetconfconnector.operations.
> Commit.handleWithNoSubsequentOperations(Commit.java:54)
> > at
> >
> org.opendaylight.controller.netconf.util.mapping.AbstractLastNetconfOp
> eration.handle(AbstractLastNetconfOperation.java:33)
> > at
> >
> org.opendaylight.controller.netconf.util.mapping.AbstractNetconfOperat
> ion.handle(AbstractNetconfOperation.java:100)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.send
> RequestGetResponseCheckIsOK(ConfigPusherImpl.java:280)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.push
> Config(ConfigPusherImpl.java:239)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.push
> ConfigWithConflictingVersionRetries(ConfigPusherImpl.java:128)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.inte
> rnalPushConfigs(ConfigPusherImpl.java:101)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.proc
> ess(ConfigPusherImpl.java:76)
> > at
> >
> org.opendaylight.controller.netconf.persist.impl.osgi.ConfigPersisterA
> ctivator$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(HBaseC
> onfiguration.java:66)
> > at
> >
> org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConf
> iguration.java:89)
> > at
> >
> org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.j
> ava: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