Results 1 to 2 of 2

Thread: Hadoop/HBase with Spring DM?

  1. #1
    Join Date
    Sep 2010
    Posts
    3

    Default Hadoop/HBase with Spring DM?

    Hi all,

    I was wondering if it was possible to connect to a HBase datastore from a Spring DM application... I tried creating an OSGi'fied version of the hadoop-core jar with BND, but I run into the following error:

    Missing Constraint: Import-Package: com.sun.security.auth; version="0.0.0"

    Any ideas on this? Is it even possible at all to use HBase in an OSGi context?
    Too bad the Spring Data integration for HBase isn't ready yet...

    Any advice is most welcome!

    Kind regards,

    Niels

  2. #2
    Join Date
    Apr 2011
    Posts
    3

    Default

    I am using hstack (zookeeper/hadoop/hbase) bundles in the equinox container. However, I am not using BND; instead, I create all my bundles manually (using the eclipse 'create bundle from existing jar' wizard.) My osgi-ified hstack bundle manifests do not import com.sun.* pkgs, and they both compile and run in both the eclipse IDE and within a headless build (maven/tycho/hudson).

    Try removing the com.sun.* pkg imports. If that does not work, recreate your bundles manually (w/out BND). Make sure you export all the pkgs required by dependent bundles, as well as import pkgs not found during runtime.

    I cannot recommend the 'best' way to osgi-ify 3rd party jars... I've just found a way -- after much trial and error -- which I am most comfortable with.

    Good luck.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •