问题描述
- Linux下Eclipse导出Hadoop项目找不到库文件
-
求教各位hadoop技术大牛~~~~~
Linux环境下,Eclipse已经集成了Hadoop插件,运行Hadoop程序没有问题
代码:CLibrary Instance = (CLibrary) Native.loadLibrary("libNLPIR.so", CLibrary.class);能够成功加载libNLPIR.so文件,其中libNLPIR.so文件是用来分词的第三方库
但是导出成Runnable jar文件后,执行Hadoop jar EmotionExtraction.jar 命令后报错:
Error: Unable to load library 'libNLPIR.so': Native library (linux-x86-64/libNLPIR.so) not found in resource path ([file:/hadoop/hadoop-2.2.0/tmp/nm-local-dir/usercache/root/appcache/application_1449120030816_0028/container_1449120030816_0028_01_000002/, file:/itcast/hadoop-2.2.0/etc/hadoop/, file:/itcast/hadoop-2.2.0/share/hadoop/common/hadoop-common-2.2.0.jar, file:/itcast/hadoop-2.2.0/share/hadoop/common/hadoop-nfs-2.2.0.jar, file:/itcast/hadoop-2.2.0/share/hadoop/common/hadoop-common-2.2.0-tests.jar
时间: 2024-11-18 14:52:28