我正在尝试用hadoop运行一个图像处理示例。
hadoop版本:hadoop 2.0.0-cdh4.2.1
hipi版本:hipi-2.1.0
opencv版本:opencv-2.4.11
opencv-2411.jar和hipi-2.1.0.jar在hadoop类路径中
我已经将“libopencv\u java2411.so”放在/etc/opencv/lib目录中。在/usr/lib/hadoop/libexec/hadoop-config.sh文件中设置java\u library\u path,指向opencv native library,如下所示:
java\u library\u path=${java\u library\u path}:/etc/opencv/lib
当我提交作业时,会收到以下错误消息。
attempt_201804241646_0001_m_000000_0: Native code library failed to load.
attempt_201804241646_0001_m_000000_0: java.lang.UnsatisfiedLinkError: no opencv_java2411 in java.library.pathopencv_java2411
18/04/24 17:05:05 INFO mapred.JobClient: Task Id : attempt_201804241646_0001_m_000000_1, Status : FAILED
java.lang.Throwable: Child Error
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:250)
Caused by: java.io.IOException: Task process exit with nonzero status of 1.
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:237)
为什么无法加载本机库?请帮忙。
暂无答案!
目前还没有任何答案,快来回答吧!