Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Discovery provider's Zookeeper dependency

Hi Yuriy,

We use the zookeeper bundle from Orbit which makes an OSGi bundle from the (maven) jar. In Orbit, there is no 3.3.4 bundle but we could provide a patch to get it there. In fact, why not switch to the latest 3.3.6?

We do not use a patched version of ZK but I think when the Orbit committers put a jar in Orbit, they export every package by default. When I look at the 3.4.6 [3] jar, you can see that every package is exported (more than in the original jar).

To be short, if you want to use a 3.3.4, or 3.3.6 we have to prepare an Orbit bundle. How this is done can be seen from the Orbit wiki [4]. Let me know if you want to work on this. Please file a bug if you do.

Cheers,

Wim

On Fri, Apr 17, 2015 at 6:30 AM, Yuriy Lopotun <yuriy.lopotun@xxxxxxxxx> wrote:
Hey guys,

ECF Zookeeper-based discovery provider by default brings in Zookeeper bundle v.3.3.3, but as per its manifest accepts any versions in the range [3.3.3,3.4.0).
In our application we'd like to use v.3.3.4, as it includes an important fix for us - in case of session timeout it closes socket connection asynchronously.

So, I tried excluding a transitive Zookeeper v.3.3.3 dependency and adding the one of v.3.3.4 instead.
What I noticed is that Zookeeper artifact groupId has changed since version 3.3.1 from org.apache.hadoop to org.apache.zookeeper. I couldn't even find the one ECF discovery provider is using (org.apache.hadoop.Zookeeper v.3.3.3) in the maven central.
I could only find org.apache.zookeeper.Zookeeper v.3.3.3.

What's even more important is that these two bundles are different. E.g. org.apache.hadoop.Zookeeper v.3.3.3 exports org.apache.zookeeper.server.persistence package used by the ECF discovery provider, while org.apache.zookeeper.Zookeeper v.3.3.3 (and v.3.3.4 as well) doesn't.

So, it looks like we are using a customized version of the Zookeeper bundle and I can't use the native org.apache.zookeeper.Zookeeper bundle?
Will appreciate you suggestion on how I can integrate the native Zookeeper v.3.3.4 (or, if we have the patched one for v.3.3.4 - it would also suit).

Thanks,
Yuriy

_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ecf-dev


Back to the top