|
|
Cardon, Tejay E 2012-08-13, 22:46
All, Is there an easy way to leverage C++ in Accumulo; perhaps something similar to Hadoop pipes?
In my case we have some C++ code that we'd like to leverage for a FilteringIterator, but we'd prefer not to port it over to Java, and we'd like to avoid JNI if we can.
Thanks, Tejay
+
Cardon, Tejay E 2012-08-13, 22:46
-
Re: C++ Pipes for Accumulo
Billie Rinaldi 2012-08-14, 15:48
On Mon, Aug 13, 2012 at 6:46 PM, Cardon, Tejay E <[EMAIL PROTECTED]>wrote:
> All,**** > > Is there an easy way to leverage C++ in Accumulo; perhaps something > similar to Hadoop pipes?**** > > ** ** > > In my case we have some C++ code that we’d like to leverage for a > FilteringIterator, but we’d prefer not to port it over to Java, and we’d > like to avoid JNI if we can. >
No, there isn't an easy way to do that. It would be possible to use Hadoop pipes with Accumulo by manually deserializing Keys, but that wouldn't help for an Iterator. If you go the JNI route, taking a look at the native map code might be helpful.
Billie
> **** > > ** ** > > Thanks,**** > > Tejay**** >
+
Billie Rinaldi 2012-08-14, 15:48
-
Re: C++ Pipes for Accumulo
Ed Kohlwey 2012-08-14, 16:48
If you can stand having a GPL-licensed component, then you can try JNA instead of JNI. Its a little bit simpler to work with.
On Tue, Aug 14, 2012 at 11:48 AM, Billie Rinaldi <[EMAIL PROTECTED]> wrote:
> On Mon, Aug 13, 2012 at 6:46 PM, Cardon, Tejay E <[EMAIL PROTECTED]>wrote: > >> All,**** >> >> Is there an easy way to leverage C++ in Accumulo; perhaps something >> similar to Hadoop pipes?**** >> >> ** ** >> >> In my case we have some C++ code that we’d like to leverage for a >> FilteringIterator, but we’d prefer not to port it over to Java, and we’d >> like to avoid JNI if we can. >> > > No, there isn't an easy way to do that. It would be possible to use > Hadoop pipes with Accumulo by manually deserializing Keys, but that > wouldn't help for an Iterator. If you go the JNI route, taking a look at > the native map code might be helpful. > > Billie > > > >> **** >> >> ** ** >> >> Thanks,**** >> >> Tejay**** >> > >
+
Ed Kohlwey 2012-08-14, 16:48
|
|