You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by jason Yang <li...@gmail.com> on 2012/05/23 11:37:16 UTC

Would I call a DLL in MR by using JNI

Hi, All~

Currently, I'm trying to rewrite an algorithm to MapReduce form. Since the
algorithm depends on some third-party DLLs which are written in C++, I was
wondering would I call a DLL in the Map() / Reduce() by using JNI?

Thanks.

-- 
YANG, Lin

Re: Would I call a DLL in MR by using JNI

Posted by jason Yang <li...@gmail.com>.
Thank you very much~

2012/5/23 GUOJUN Zhu <gu...@freddiemac.com>

>
> We are doing that with *.so (linux binary) on cluster.  We are using the
> approach described here
> http://hadoop.apache.org/common/docs/current/native_libraries.html
>
> On the testing local mode (in windows), I just put *.dll into the PATH.
>  And everything works.
>
> Zhu, Guojun
> Modeling Sr Graduate
> 571-3824370
> guojun_zhu@freddiemac.com
> Financial Engineering
> Freddie Mac
>
>
>     *jason Yang <li...@gmail.com>*
>
>    05/23/2012 05:37 AM
>     Please respond to
> mapreduce-user@hadoop.apache.org
>
>   To
> mapreduce-user@hadoop.apache.org
> cc
>   Subject
> Would I call a DLL in MR by using JNI
>
>
>
>
> Hi, All~
>
> Currently, I'm trying to rewrite an algorithm to MapReduce form. Since the
> algorithm depends on some third-party DLLs which are written in C++, I was
> wondering would I call a DLL in the Map() / Reduce() by using JNI?
>
> Thanks.
>
> --
> YANG, Lin
>
> <http://hadoop.apache.org/common/docs/current/native_libraries.html>




-- 
YANG, Lin

Re: Would I call a DLL in MR by using JNI

Posted by GUOJUN Zhu <gu...@freddiemac.com>.
We are doing that with *.so (linux binary) on cluster.  We are using the 
approach described here 
http://hadoop.apache.org/common/docs/current/native_libraries.html

On the testing local mode (in windows), I just put *.dll into the PATH. 
And everything works. 

Zhu, Guojun
Modeling Sr Graduate
571-3824370
guojun_zhu@freddiemac.com
Financial Engineering
Freddie Mac



   jason Yang <li...@gmail.com> 
   05/23/2012 05:37 AM
   Please respond to
mapreduce-user@hadoop.apache.org


To
mapreduce-user@hadoop.apache.org
cc

Subject
Would I call a DLL in MR by using JNI






Hi, All~

Currently, I'm trying to rewrite an algorithm to MapReduce form. Since the 
algorithm depends on some third-party DLLs which are written in C++, I was 
wondering would I call a DLL in the Map() / Reduce() by using JNI?

Thanks.

-- 
YANG, Lin