Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread Ian jonhson
Thanks for answering. I run my Hadoop in single node, not cluster mode. On Thu, Apr 30, 2009 at 11:21 AM, jason hadoop jason.had...@gmail.com wrote: You need to make sure that the shared library is available on the tasktracker nodes, either by installing it, or by pushing it around via the

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread He Yongqiang
put your .so file in every traker's Hadoop-install/lib/native/Linux-xxx-xx/ Or In your code,try to do String oldPath=System.getProperty(java.library.path); System.setProperty(java.library.path, oldPath==null? local_path_of_lib_file:oldPath+pathSeparator +local_path_of_lib_file))

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread He Yongqiang
Does hadoop now support jni calls in Mappers or Reducers? If yes, how? If not, I think we should create a jira issue for supporting that. On 09-4-30 下午4:02, Ian jonhson jonhson@gmail.com wrote: Thanks for answering. I run my Hadoop in single node, not cluster mode. On Thu, Apr

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread Rakhi Khatwani
Hi Jason, when will the full version of your book be available?? On Thu, Apr 30, 2009 at 8:51 AM, jason hadoop jason.had...@gmail.comwrote: You need to make sure that the shared library is available on the tasktracker nodes, either by installing it, or by pushing it around via the

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread Ian jonhson
2009/4/30 He Yongqiang heyongqi...@software.ict.ac.cn: put your .so file in every traker's Hadoop-install/lib/native/Linux-xxx-xx/ Or In your code,try to do String oldPath=System.getProperty(java.library.path); System.setProperty(java.library.path, oldPath==null?

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread Ian jonhson
You mean that the current hadoop does not support JNI calls, right? Are there any solution to achieve the calls from C interfaces? 2009/4/30 He Yongqiang heyongqi...@software.ict.ac.cn: Does hadoop now support jni calls in Mappers or Reducers? If yes, how? If not, I think we should create a

Load .so library error when Hadoop calls JNI interfaces

2009-04-29 Thread Ian jonhson
Dear all, I wrote a plugin codes for Hadoop, which calls the interfaces in Cpp-built .so library. The plugin codes are written in java, so I prepared a JNI class to encapsulate the C interfaces. The java codes can be executed successfully when I compiled it and run it standalone. However, it

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-29 Thread jason hadoop
You need to make sure that the shared library is available on the tasktracker nodes, either by installing it, or by pushing it around via the distributed cache On Wed, Apr 29, 2009 at 8:19 PM, Ian jonhson jonhson@gmail.com wrote: Dear all, I wrote a plugin codes for Hadoop, which calls